Fix library installation; fixes #3374
authorIan Lynagh <igloo@earth.li>
Thu, 20 Aug 2009 17:37:07 +0000 (17:37 +0000)
committerIan Lynagh <igloo@earth.li>
Thu, 20 Aug 2009 17:37:07 +0000 (17:37 +0000)
When configuring packages, enable library profiling and shared libraries
based on the ways in GhcLibWays.

rules/build-package-data.mk

index 7d540f4..6c3b1b0 100644 (file)
 
 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