aboutsummaryrefslogtreecommitdiffstats
path: root/lang/ghc/files/patch-configure.ac
blob: 7f1323c78d5ce3eeb342482e8c55bd45d0dd1950 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- ./configure.ac.orig 2014-07-10 07:04:42.000000000 +0200
+++ ./configure.ac  2014-07-11 10:27:40.000000000 +0200
@@ -435,6 +435,9 @@
 dnl ** Building a cross compiler?
 dnl --------------------------------------------------------------
 CrossCompiling=NO
+
+build=`echo $build | sed -e 's/amd64-/x86_64-/g; s/-freebsd.*$/-freebsd/g'`
+
 # If 'host' and 'target' differ, then this means we are building a cross-compiler.
 if test "$target" != "$host" ; then
     CrossCompiling=YES
@@ -914,7 +917,6 @@
 FP_VISIBILITY_HIDDEN
 
 dnl ** check for librt
-AC_CHECK_LIB(rt, clock_gettime)
 AC_CHECK_FUNCS(clock_gettime timer_settime)
 FP_CHECK_TIMER_CREATE