[commit: ghc] master: Build system: delete REGULAR_INSTALL_DYNLIBS and INSTALL_DYNLIBS (47ebe26)
git at git.haskell.org
git at git.haskell.org
Tue Jul 14 08:24:58 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/47ebe267e8f78eee68333ba12a83d4fa6d763c3b/ghc
>---------------------------------------------------------------
commit 47ebe267e8f78eee68333ba12a83d4fa6d763c3b
Author: Thomas Miedema <thomasmiedema at gmail.com>
Date: Thu Jul 9 19:21:28 2015 +0200
Build system: delete REGULAR_INSTALL_DYNLIBS and INSTALL_DYNLIBS
Ever since we ship xhtml, terminfo and haskeline (#8919), commit
4caadb7cbee5c176abb99df25c4cc1657ae57f40, REGULAR_INSTALL_DYNLIBS is
always empty.
REGULAR_INSTALL_PACKAGES =
PACKAGES_STAGE1 + compiler + PACKAGES_STAGE2
REGULAR_INSTALL_DYNLIBS =
PACKAGES_STAGE1 + PACKAGES_STAGE2 - REGULAR_INSTALL_PACKAGES
So we can delete it, and all the places where it is used. This
simplifies ghc.mk a bit.
Differential Revision: https://phabricator.haskell.org/D1062
>---------------------------------------------------------------
47ebe267e8f78eee68333ba12a83d4fa6d763c3b
ghc.mk | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/ghc.mk b/ghc.mk
index 7e9c2e5..219cdc7 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -430,14 +430,6 @@ REGULAR_INSTALL_PACKAGES += compiler
endif
REGULAR_INSTALL_PACKAGES += $(addprefix libraries/,$(PACKAGES_STAGE2))
-# If we have built the programs with dynamic libraries, then
-# ghc will be dynamically linked against haskeline.so etc, so
-# we need the dynamic libraries of everything down to here
-REGULAR_INSTALL_DYNLIBS := $(addprefix libraries/,$(PACKAGES_STAGE1))
-REGULAR_INSTALL_DYNLIBS += $(addprefix libraries/,$(PACKAGES_STAGE2))
-REGULAR_INSTALL_DYNLIBS := $(filter-out $(REGULAR_INSTALL_PACKAGES),\
- $(REGULAR_INSTALL_DYNLIBS))
-
ifneq "$(CrossCompiling)" "YES"
define addExtraPackage
ifeq "$2" "-"
@@ -467,12 +459,8 @@ SUPERSIZE_INSTALL_PACKAGES += compiler
endif
SUPERSIZE_INSTALL_PACKAGES += $(addprefix libraries/,$(PACKAGES_STAGE2))
-INSTALL_DYNLIBS :=
ifeq "$(InstallExtraPackages)" "NO"
INSTALL_PACKAGES := $(REGULAR_INSTALL_PACKAGES)
-ifeq "$(DYNAMIC_GHC_PROGRAMS)" "YES"
-INSTALL_DYNLIBS := $(REGULAR_INSTALL_DYNLIBS)
-endif
else
INSTALL_PACKAGES := $(SUPERSIZE_INSTALL_PACKAGES)
endif
@@ -917,8 +905,6 @@ install_packages: rts/dist/package.conf.install
$(call INSTALL_DIR,"$(INSTALLED_PACKAGE_CONF)")
$(call INSTALL_DIR,"$(DESTDIR)$(topdir)/rts")
$(call installLibsTo, $(RTS_INSTALL_LIBS), "$(DESTDIR)$(topdir)/rts")
- $(foreach p, $(INSTALL_DYNLIBS), \
- $(call installLibsTo, $(wildcard $p/dist-install/build/*.so $p/dist-install/build/*.dll $p/dist-install/build/*.dylib), "$(DESTDIR)$(topdir)/$($p_dist-install_LIB_NAME)"))
$(foreach p, $(INSTALL_PACKAGES), \
$(call make-command, \
"$(ghc-cabal_INPLACE)" copy \
More information about the ghc-commits
mailing list