summaryrefslogtreecommitdiff
path: root/rules/shell-wrapper.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2012-10-14 13:36:08 +0100
committerIan Lynagh <igloo@earth.li>2012-10-14 15:31:07 +0100
commit0271742138ffc55d992be549c027ae690fde5080 (patch)
treefa99b538693da25f282f0e2752083c95d2f3e427 /rules/shell-wrapper.mk
parent8c24ab98cde96ce20dea6a9280231d978ffc7690 (diff)
downloadhaskell-0271742138ffc55d992be549c027ae690fde5080.tar.gz
Get dynamic-by-default mostly working on OS X
Diffstat (limited to 'rules/shell-wrapper.mk')
-rw-r--r--rules/shell-wrapper.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/rules/shell-wrapper.mk b/rules/shell-wrapper.mk
index 8085ad150a..395968a0d9 100644
--- a/rules/shell-wrapper.mk
+++ b/rules/shell-wrapper.mk
@@ -45,7 +45,11 @@ $$(INPLACE_WRAPPER): $$($1_$2_INPLACE)
$$($1_$2_SHELL_WRAPPER_EXTRA)
$$($1_$2_INPLACE_SHELL_WRAPPER_EXTRA)
ifeq "$$(DYNAMIC_BY_DEFAULT)" "YES"
+ifeq "$$(TargetOS_CPP)" "linux"
echo 'export LD_LIBRARY_PATH="$$($1_$2_DEP_LIB_DIRS_SEARCHPATH)"' >> $$@
+else ifeq "$$(TargetOS_CPP)" "darwin"
+ echo 'export DYLD_LIBRARY_PATH="$$($1_$2_DEP_LIB_DIRS_SEARCHPATH)"' >> $$@
+endif
endif
ifeq "$$($1_$2_SHELL_WRAPPER)" "YES"
cat $$($1_$2_SHELL_WRAPPER_NAME) >> $$@