Skip to content
Snippets Groups Projects
Commit ce1094ea authored by Ian Lynagh's avatar Ian Lynagh
Browse files

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

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