summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2012-10-22 18:22:42 +0100
committerIan Lynagh <ian@well-typed.com>2012-10-22 18:22:42 +0100
commit14ddde0e40745395cd6d0cf26ca45bf0220b4aaa (patch)
treece13fd7e29480f742797a264510e88e7c1065586 /rules
parent6bb741b12cf0829dd00fe9b16abc2941610cd155 (diff)
downloadhaskell-14ddde0e40745395cd6d0cf26ca45bf0220b4aaa.tar.gz
When DYNAMIC_BY_DEFAULT, make inplace wrappers for everything
Even though e.g. inplace/bin/hpc doesn't normally need a shell wrapper, it does when we are using dynlibs, as we need to set the LD_LIBRARY_PATH so that it can find its libraries.
Diffstat (limited to 'rules')
-rw-r--r--rules/build-prog.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules/build-prog.mk b/rules/build-prog.mk
index 232844615f..6ce4d6f264 100644
--- a/rules/build-prog.mk
+++ b/rules/build-prog.mk
@@ -60,6 +60,8 @@ else ifneq "$$($1_$2_INSTALL_INPLACE)" "YES"
$1_$2_WANT_INPLACE_WRAPPER = NO
else ifeq "$$($1_$2_SHELL_WRAPPER)" "YES"
$1_$2_WANT_INPLACE_WRAPPER = YES
+else ifeq "$$(DYNAMIC_BY_DEFAULT)" "YES"
+$1_$2_WANT_INPLACE_WRAPPER = YES
else
$1_$2_WANT_INPLACE_WRAPPER = NO
endif