[commit: ghc] master: Add stage-specific AS variables to the build system (3d8e6f6)
Ian Lynagh
igloo at earth.li
Fri Apr 29 19:14:21 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/ghc
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/3d8e6f6b1910080defad4ab2687255eb6e6df34b
>---------------------------------------------------------------
commit 3d8e6f6b1910080defad4ab2687255eb6e6df34b
Author: Ian Lynagh <igloo at earth.li>
Date: Fri Apr 29 14:37:44 2011 +0100
Add stage-specific AS variables to the build system
>---------------------------------------------------------------
mk/config.mk.in | 5 +++++
rules/c-suffix-rules.mk | 2 +-
rules/package-config.mk | 1 +
3 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/mk/config.mk.in b/mk/config.mk.in
index f96302b..3d2d6c0 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -548,6 +548,11 @@ CC_STAGE0 = @CC_STAGE0@
CC_STAGE1 = $(CC)
CC_STAGE2 = $(CC)
CC_STAGE3 = $(CC)
+AS = $(WhatGccIsCalled)
+AS_STAGE0 = @CC_STAGE0@
+AS_STAGE1 = $(AS)
+AS_STAGE2 = $(AS)
+AS_STAGE3 = $(AS)
# C compiler and linker flags from configure (e.g. -m<blah> to select
# correct C compiler backend). The stage number is the stage of GHC
diff --git a/rules/c-suffix-rules.mk b/rules/c-suffix-rules.mk
index bba73a8..a4a0b57 100644
--- a/rules/c-suffix-rules.mk
+++ b/rules/c-suffix-rules.mk
@@ -49,7 +49,7 @@ $1/$2/build/%.$$($3_osuf) : $1/$2/build/%.c
"$$($1_$2_CC)" $$($1_$2_$3_ALL_CC_OPTS) -c $$< -o $$@
$1/$2/build/%.$$($3_osuf) : $1/$2/build/%.$$($3_way_)s
- "$$(AS)" $$($1_$2_$3_ALL_AS_OPTS) -o $$@ $$<
+ "$$($1_$2_AS)" $$($1_$2_$3_ALL_AS_OPTS) -o $$@ $$<
$1/$2/build/%.$$($3_osuf) : $1/%.S | $$$$(dir $$$$@)/.
"$$($1_$2_CC)" $$($1_$2_$3_ALL_CC_OPTS) -c $$< -o $$@
diff --git a/rules/package-config.mk b/rules/package-config.mk
index 7873157..177ca25 100644
--- a/rules/package-config.mk
+++ b/rules/package-config.mk
@@ -17,6 +17,7 @@ $(call profStart, package-config($1,$2,$3))
$1_$2_HC = $$(GHC_STAGE$3)
$1_$2_CC = $$(CC_STAGE$3)
+$1_$2_AS = $$(AS_STAGE$3)
$1_$2_AR = $$(AR_STAGE$3)
$1_$2_AR_OPTS = $$(AR_OPTS_STAGE$3)
$1_$2_EXTRA_AR_ARGS = $$(EXTRA_AR_ARGS_STAGE$3)
More information about the Cvs-ghc
mailing list