From f95ced2635e0f29fd1b7fe76d44711ef0d236cb4 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Tue, 24 Jul 2012 15:46:55 +0100 Subject: Tweak the HC_OPTS generation libraries/base/GHC/Base_HC_OPTS wasn't getting included, because we were using libraries/base/./GHC/Base.lhs as the path, and the ./ meant we got the wrong filename. I didn't use $(realpath ...) as the .hs file may be generated by hsc2hs or similar, so may not exist when the HC_OPTS are constructed. --- rules/distdir-way-opts.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/distdir-way-opts.mk b/rules/distdir-way-opts.mk index bbd37d1ee1..ed2a4d0b27 100644 --- a/rules/distdir-way-opts.mk +++ b/rules/distdir-way-opts.mk @@ -105,7 +105,7 @@ $1_$2_$3_MOST_HC_OPTS = \ $$($1_$2_MORE_HC_OPTS) \ $$($1_$2_EXTRA_HC_OPTS) \ $$($1_$2_$3_HC_OPTS) \ - $$($$(basename $$<)_HC_OPTS) \ + $$($$(basename $$(subst ./,,$$<))_HC_OPTS) \ $$(SRC_HC_WARNING_OPTS) \ $$(EXTRA_HC_OPTS) -- cgit v1.2.1