summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-08-20 17:37:07 +0000
committerIan Lynagh <igloo@earth.li>2009-08-20 17:37:07 +0000
commit0a594fab8ebb0a603f6e95dd843c8e98f54148ea (patch)
tree473e00c8e98e4a0d51b55c00d33869036877e64b /rules
parent7f9e7631334f8b57db621dccc18dce6aee711f69 (diff)
downloadhaskell-0a594fab8ebb0a603f6e95dd843c8e98f54148ea.tar.gz
Fix library installation; fixes #3374
When configuring packages, enable library profiling and shared libraries based on the ways in GhcLibWays.
Diffstat (limited to 'rules')
-rw-r--r--rules/build-package-data.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/rules/build-package-data.mk b/rules/build-package-data.mk
index 7d540f4412..6c3b1b0916 100644
--- a/rules/build-package-data.mk
+++ b/rules/build-package-data.mk
@@ -12,7 +12,11 @@
define build-package-data # args: $1 = dir, $2 = distdir
-ifeq "$$(BuildSharedLibs)" "YES"
+ifeq "$$(filter p,$$(GhcLibWays))" "p"
+$1_$2_CONFIGURE_OPTS += --enable-library-profiling
+endif
+
+ifeq "$$(filter dyn,$$(GhcLibWays))" "dyn"
$1_$2_CONFIGURE_OPTS += --enable-shared
endif