X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fghc.mk;h=8a34723bf6875d0022617f62b5ae6310230d80f4;hb=de29a9f02449359b70402f763ac7590673774124;hp=8ecfa7df7e49427170afb13568e7cc59c99452b4;hpb=7b45c46cbabe1288ea87bd9b94c57e010ed17e60;p=ghc-hetmet.git diff --git a/compiler/ghc.mk b/compiler/ghc.mk index 8ecfa7d..8a34723 100644 --- a/compiler/ghc.mk +++ b/compiler/ghc.mk @@ -463,7 +463,9 @@ $(compiler_stage3_depfile) : $(includes_H_CONFIG) $(includes_H_PLATFORM) $(inclu # [fiddle-stage1-version] above. ifneq "$(ProjectPatchLevel)" "0" compiler/stage1/inplace-pkg-config-munged: compiler/stage1/inplace-pkg-config - sed "s#.$(ProjectPatchLevel)##" <$< >$@ + sed -e 's/^\(version: .*\)\.$(ProjectPatchLevel)$$/\1/' \ + -e 's/^\(hs-libraries: HSghc-.*\)\.$(ProjectPatchLevel)$$/\1/' \ + < $< > $@ $(compiler_stage1_GHC_PKG) update --force $(compiler_stage1_GHC_PKG_OPTS) $@ $(compiler_stage1_v_LIB) : compiler/stage1/inplace-pkg-config-munged