diff options
author | Ian Lynagh <igloo@earth.li> | 2012-10-14 13:36:08 +0100 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2012-10-14 15:31:07 +0100 |
commit | 0271742138ffc55d992be549c027ae690fde5080 (patch) | |
tree | fa99b538693da25f282f0e2752083c95d2f3e427 /rules/shell-wrapper.mk | |
parent | 8c24ab98cde96ce20dea6a9280231d978ffc7690 (diff) | |
download | haskell-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.mk | 4 |
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) >> $$@ |