Make ghc -dynamic imply -fPIC for C code
[ghc-hetmet.git] / rules / build-package.mk
index fb7d9d2..6612312 100644 (file)
@@ -42,6 +42,11 @@ endif
 ifneq "$(BINDIST) $3" "YES 0"
 
 $(call all-target,$1,all_$1_$2)
+# This give us things like
+#     all_libraries: all_libraries/base_dist-install
+ifneq "$$($1_$2_GROUP)" ""
+all_$$($1_$2_GROUP): all_$1_$2
+endif
 
 $(call clean-target,$1,$2,$1/$2)