[commit: ghc] master: Set DYNAMIC_GHC_PROGRAMS=NO for FreeBSD because $ORIGIN is not resolved properly (see #7819) (8ab3cc1)

Páli Gábor János pali.gabor at gmail.com
Sun Apr 28 01:35:25 CEST 2013


Repository : http://darcs.haskell.org/ghc.git/

On branch  : master

https://github.com/ghc/ghc/commit/8ab3cc1b878ac5915295e6f31ac9b592a4bde8c6

>---------------------------------------------------------------

commit 8ab3cc1b878ac5915295e6f31ac9b592a4bde8c6
Author: Gabor Pali <pali.gabor at gmail.com>
Date:   Sat Apr 27 23:13:12 2013 +0200

    Set DYNAMIC_GHC_PROGRAMS=NO for FreeBSD because $ORIGIN is not resolved
    properly (see #7819)

>---------------------------------------------------------------

 mk/config.mk.in | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/mk/config.mk.in b/mk/config.mk.in
index 55f5756..5ef1f5c 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -134,6 +134,10 @@ DYNAMIC_TOO = YES
 ifeq "$(TargetOS_CPP)" "mingw32"
 # This doesn't work on Windows yet
 DYNAMIC_GHC_PROGRAMS = NO
+else ifeq "$(TargetOS_CPP)" "freebsd"
+# FreeBSD cannot do proper resolution for $ORIGIN (due to a bug in
+# rtld(1)), so disable it by default (see #7819).
+DYNAMIC_GHC_PROGRAMS = NO
 else
 DYNAMIC_GHC_PROGRAMS = YES
 endif





More information about the ghc-commits mailing list