csu: Remove $CFLAGS from intermediate object targets
authorJohn Marino <draco@marino.st>
Tue, 21 Oct 2014 18:25:30 +0000 (20:25 +0200)
committerJohn Marino <draco@marino.st>
Tue, 21 Oct 2014 18:25:30 +0000 (20:25 +0200)
These makefile case from FreeBSD, but the flags were called $ACFLAGS,
not $CFLAGS, and they are empty by default.  I noticed clang's
assembler screaming about unused flags and then noticed this mistake.

lib/csu/i386/Makefile.csu
lib/csu/x86_64/Makefile.csu

index d47b9a5..be7d473 100644 (file)
@@ -23,7 +23,7 @@ gcrt1_c.s: crt1_c.c
        sed ${SED_FIX_NOTE} ${.TARGET}
 
 gcrt1_c.o: gcrt1_c.s
-       ${CC} ${CFLAGS} -c -o ${.TARGET} gcrt1_c.s
+       ${CC} -c -o ${.TARGET} gcrt1_c.s
 
 gcrt1.o: gcrt1_c.o crt1_s.o
        ${LD} ${LDFLAGS} -o gcrt1.o -r crt1_s.o gcrt1_c.o
@@ -33,7 +33,7 @@ crt1_c.s: crt1_c.c
        sed ${SED_FIX_NOTE} ${.TARGET}
 
 crt1_c.o: crt1_c.s
-       ${CC} ${CFLAGS} -c -o ${.TARGET} crt1_c.s
+       ${CC} -c -o ${.TARGET} crt1_c.s
 
 crt1.o:        crt1_c.o crt1_s.o
        ${LD} ${LDFLAGS} -o crt1.o -r crt1_s.o crt1_c.o
@@ -44,7 +44,7 @@ Scrt1_c.s: crt1_c.c
        sed ${SED_FIX_NOTE} ${.TARGET}
 
 Scrt1_c.o: Scrt1_c.s
-       ${CC} ${CFLAGS} -c -o ${.TARGET} Scrt1_c.s
+       ${CC} -c -o ${.TARGET} Scrt1_c.s
 
 Scrt1.o: Scrt1_c.o crt1_s.o
        ${LD} ${LDFLAGS} -o Scrt1.o -r crt1_s.o Scrt1_c.o
index 6d97864..e990d22 100644 (file)
@@ -22,18 +22,18 @@ crt1.s: crt1.c
        sed ${SED_FIX_NOTE} ${.TARGET}
 
 crt1.o: crt1.s
-       ${CC} ${CFLAGS} -c -o ${.TARGET} crt1.s
+       ${CC} -c -o ${.TARGET} crt1.s
 
 gcrt1.s: crt1.c
        ${CC} ${CFLAGS} -DGCRT -S -o ${.TARGET} ${CSUDIR}/crt1.c
        sed ${SED_FIX_NOTE} ${.TARGET}
 
 gcrt1.o: gcrt1.s
-       ${CC} ${CFLAGS} -c -o ${.TARGET} gcrt1.s
+       ${CC} -c -o ${.TARGET} gcrt1.s
 
 Scrt1.s: crt1.c
        ${CC} ${CFLAGS} -fPIC -DPIC -S -o ${.TARGET} ${CSUDIR}/crt1.c
        sed ${SED_FIX_NOTE} ${.TARGET}
 
 Scrt1.o: Scrt1.s
-       ${CC} ${CFLAGS} -c -o ${.TARGET} Scrt1.s
+       ${CC} -c -o ${.TARGET} Scrt1.s