From 8ab3cc1b878ac5915295e6f31ac9b592a4bde8c6 Mon Sep 17 00:00:00 2001 From: Gabor Pali Date: Sat, 27 Apr 2013 23:13:12 +0200 Subject: [PATCH] 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 55f57568be43..5ef1f5cbad79 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