Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk Fully support per-target AFLAGS.



details:   https://anonhg.NetBSD.org/src/rev/675891fc8763
branches:  trunk
changeset: 765170:675891fc8763
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri May 20 14:27:48 2011 +0000

description:
Fully support per-target AFLAGS.

diffstat:

 share/mk/sys.mk |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (25 lines):

diff -r b64f7f3a3982 -r 675891fc8763 share/mk/sys.mk
--- a/share/mk/sys.mk   Fri May 20 13:40:04 2011 +0000
+++ b/share/mk/sys.mk   Fri May 20 14:27:48 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: sys.mk,v 1.105 2011/04/07 01:40:32 joerg Exp $
+#      $NetBSD: sys.mk,v 1.106 2011/05/20 14:27:48 joerg Exp $
 #      @(#)sys.mk      8.2 (Berkeley) 3/21/94
 
 unix?=         We run NetBSD.
@@ -13,11 +13,11 @@
 
 AS?=           as
 AFLAGS?=
-COMPILE.s?=    ${CC} ${AFLAGS} -c
-LINK.s?=       ${CC} ${AFLAGS} ${LDFLAGS}
+COMPILE.s?=    ${CC} ${AFLAGS} ${AFLAGS.${<:T}} -c
+LINK.s?=       ${CC} ${AFLAGS} ${AFLAGS.${<:T}} ${LDFLAGS}
 _ASM_TRADITIONAL_CPP=  -x assembler-with-cpp
-COMPILE.S?=    ${CC} ${AFLAGS} ${CPPFLAGS} ${_ASM_TRADITIONAL_CPP} -c
-LINK.S?=       ${CC} ${AFLAGS} ${CPPFLAGS} ${LDFLAGS}
+COMPILE.S?=    ${CC} ${AFLAGS} ${AFLAGS.${<:T}} ${CPPFLAGS} ${_ASM_TRADITIONAL_CPP} -c
+LINK.S?=       ${CC} ${AFLAGS} ${AFLAGS.${<:T}} ${CPPFLAGS} ${LDFLAGS}
 
 CC?=           cc
 .if ${MACHINE_ARCH} == "alpha" || \



Home | Main Index | Thread Index | Old Index