From afcf3b2a47512fd5f5cbb98da186c81dadb1de43 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Wed, 19 Aug 2009 14:55:07 +0000 Subject: [PATCH] Rolling back: Add a kludge to fix building shared libs --- ghc.mk | 3 --- rules/build-package-way.mk | 10 ---------- rules/mkdep.mk | 16 ---------------- 3 files changed, 29 deletions(-) delete mode 100644 rules/mkdep.mk diff --git a/ghc.mk b/ghc.mk index f87ccb1..42022c9 100644 --- a/ghc.mk +++ b/ghc.mk @@ -140,9 +140,6 @@ endif include rules/all-target.mk include rules/clean-target.mk -# Helper macro -include rules/mkdep.mk - # ----------------------------------------------------------------------------- # The inplace tree diff --git a/rules/build-package-way.mk b/rules/build-package-way.mk index 0be7dc9..f0300be 100644 --- a/rules/build-package-way.mk +++ b/rules/build-package-way.mk @@ -46,16 +46,6 @@ $$($1_$2_$3_LIB) : $$($1_$2_$3_HS_OBJS) $$($1_$2_dyn_C_OBJS) $$($1_$2_dyn_S_OBJS -shared -dynamic -dynload deploy \ -no-auto-link-packages $$(addprefix -package,$$($1_$2_DEPS)) \ -o $$@ - -# This is a kludge. The .dyn_hi files currently depend on the .dyn_hi -# files of modules that they import. But they actually want the .hi -# files of modules from another package.This we make the .dyn_hi files -# depend on the .hi files so we are sure that they exist and are -# up-to-date. -$$(foreach m,$$(addprefix $1/$2/build/,$$($1_$2_SLASH_MODS)),\ -$$(eval $$(call mkdep,$$m.$$($3_hisuf),$$m.hi)) \ -) - else # Build the ordinary .a library ifeq "$$($1_$2_SplitObjs)" "YES" diff --git a/rules/mkdep.mk b/rules/mkdep.mk deleted file mode 100644 index fea132f..0000000 --- a/rules/mkdep.mk +++ /dev/null @@ -1,16 +0,0 @@ -# ----------------------------------------------------------------------------- -# -# (c) 2009 The University of Glasgow -# -# This file is part of the GHC build system. -# -# To understand how the build system works and how to modify it, see -# http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture -# http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying -# -# ----------------------------------------------------------------------------- - - -define mkdep # args: $1 = target, $2 = deps -$1 : $2 -endef -- 1.7.10.4