diff options
| author | matt <matt@NetBSD.org> | 2007-03-09 04:40:38 +0000 |
|---|---|---|
| committer | matt <matt@NetBSD.org> | 2007-03-09 04:40:38 +0000 |
| commit | 2018fad37d188b42b25cdfd85bcf412c378244db (patch) | |
| tree | 2225536222269be74883148d7e71b2325336f23c /gnu | |
| parent | 142de6f17bc469c48dd30945bb7dc3258c7a7392 (diff) | |
Honour ${CPUFLAGS}
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/lib/crtstuff4/Makefile | 5 | ||||
| -rw-r--r-- | gnu/lib/libgcc4/libgcc/Makefile | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/gnu/lib/crtstuff4/Makefile b/gnu/lib/crtstuff4/Makefile index 0b7fd01f2ca..aff1e4baba5 100644 --- a/gnu/lib/crtstuff4/Makefile +++ b/gnu/lib/crtstuff4/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2006/05/10 22:53:49 mrg Exp $ +# $NetBSD: Makefile,v 1.2 2007/03/09 04:40:38 matt Exp $ REQUIRETOOLS= yes NOLINT= # defined @@ -52,7 +52,8 @@ tconfig.h: # Override the default .c -> .o rule. .c.o: - ${CC} ${CPPFLAGS} ${GCFLAGS} -c ${.IMPSRC} -o ${.TARGET}.o + ${_MKTARGET_COMPILE} + ${CC} ${CPPFLAGS} ${GCFLAGS} ${CPUFLAGS} -c ${.IMPSRC} -o ${.TARGET}.o mv ${.TARGET}.o ${.TARGET} # these aren't necessary but are #include'd diff --git a/gnu/lib/libgcc4/libgcc/Makefile b/gnu/lib/libgcc4/libgcc/Makefile index 80dc2e3b2a9..0b47b1bf1b8 100644 --- a/gnu/lib/libgcc4/libgcc/Makefile +++ b/gnu/lib/libgcc4/libgcc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2006/06/23 17:27:08 mrg Exp $ +# $NetBSD: Makefile,v 1.3 2007/03/09 04:40:38 matt Exp $ REQUIRETOOLS= yes NOLINT= # defined @@ -31,7 +31,7 @@ CLEANFILES+= ${SOBJS:=.tmp1} ${SOBJS:=.tmp2} ${_MKTARGET_COMPILE} ${COMPILE.c} ${CSHLIBFLAGS} ${.IMPSRC} -o ${.TARGET}.tmp1 ${NM} -pg ${.TARGET}.tmp1 | ${AWK} 'NF == 3 { print "\t.hidden", $$3 }' | \ - ${CC} -Wl,-x -r -nostdinc -nostdlib -o ${.TARGET}.tmp2 ${.TARGET}.tmp1 -xassembler - + ${CC} -Wl,-x -r -nostdinc -nostdlib ${CPUFLAGS} -o ${.TARGET}.tmp2 ${.TARGET}.tmp1 -xassembler - .if defined(COPTS) && !empty(COPTS:M*-g*) mv ${.TARGET}.tmp2 ${.TARGET} .else |
