Commit ce1094ea authored by ian@well-typed.com's avatar ian@well-typed.com
Browse files

Use -rpath flags on all Elf OSes, not just Linux

Patch from pgj; part of #7819.
parent 98430836
......@@ -125,7 +125,7 @@ $1_$2_$3_ALL_HC_OPTS = \
ifeq "$3" "dyn"
ifneq "$4" "0"
ifeq "$$(TargetOS_CPP)" "linux"
ifeq "$$(TargetElf)" "YES"
$1_$2_$3_GHC_LD_OPTS += \
-fno-use-rpaths \
$$(foreach d,$$($1_$2_TRANSITIVE_DEPS),-optl-Wl$$(comma)-rpath -optl-Wl$$(comma)'$$$$ORIGIN/../$$d') -optl-Wl,-z -optl-Wl,origin
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment