From 51bf3653775ba734f7ca3de99234aba722a0c72c Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Wed, 20 Mar 2013 19:25:27 +0000 Subject: Fix build with non-Linux ELF OSes We were only setting an RPATH for the RTS DLL on Linux, but as far as I can see we should be doing it for all ELF OSes. Hopefully this will fix the problem where the installed ghc-pkg can't find libffi.dll on FreeBSD. --- mk/config.mk.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'mk') diff --git a/mk/config.mk.in b/mk/config.mk.in index c818a32d6f..275c21a803 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -88,7 +88,13 @@ GhcDynamic=NO # GhcProfiled=YES means compile a profiled stage-2 compiler GhcProfiled=NO -# Soem platforms don't support shared libraries +ifeq "$(findstring $(TargetOS_CPP),linux freebsd dragonfly openbsd netbsd solaris2 kfreebsdgnu haiku linux-android)" "" +TargetElf = NO +else +TargetElf = YES +endif + +# Some platforms don't support shared libraries NoSharedLibsPlatformList = ifeq "$(SOLARIS_BROKEN_SHLD)" "YES" -- cgit v1.2.1