diff options
Diffstat (limited to 'lang/ghc/files/patch-configure.ac')
-rw-r--r-- | lang/ghc/files/patch-configure.ac | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/lang/ghc/files/patch-configure.ac b/lang/ghc/files/patch-configure.ac index ddffa1650ae5..8906fbb875dd 100644 --- a/lang/ghc/files/patch-configure.ac +++ b/lang/ghc/files/patch-configure.ac @@ -1,6 +1,6 @@ ---- configure.ac.orig 2015-07-21 19:50:11 UTC +--- configure.ac.orig 2017-01-04 14:17:17 UTC +++ configure.ac -@@ -383,6 +383,9 @@ AC_SUBST([SplitObjsBroken]) +@@ -418,6 +418,9 @@ AC_SUBST([SplitObjsBroken]) dnl ** Building a cross compiler? dnl -------------------------------------------------------------- CrossCompiling=NO @@ -8,5 +8,17 @@ +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 + if test "$TargetPlatform" != "$HostPlatform" ; then CrossCompiling=YES +@@ -1057,6 +1060,11 @@ if test "$ac_cv_sizeof_void_p" -eq 8 ; then + use_large_address_space=yes + elif test "$ghc_host_os" = "openbsd" ; then + # as of OpenBSD 5.8 (2015), OpenBSD does not support mmap with MAP_NORESERVE. ++ # The flag MAP_NORESERVE is supported for source compatibility reasons, ++ # but is completely ignored by OS mmap ++ use_large_address_space=no ++ elif test "$ghc_host_os" = "freebsd" ; then ++ # FreeBSD does not support mmap with MAP_NORESERVE,r emoved in r273250. + # The flag MAP_NORESERVE is supported for source compatibility reasons, + # but is completely ignored by OS mmap + use_large_address_space=no |