Convert to using CC instead of LD, as LDFLAGS is for CC not LD.

This commit is contained in:
lukem 2006-06-28 15:00:51 +00:00
parent fa073991b3
commit a0f0fb81a8

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.18 2003/07/16 11:11:49 dsl Exp $
# $NetBSD: Makefile,v 1.19 2006/06/28 15:00:51 lukem Exp $
NOMAN=
BINDIR= /usr/mdec
@ -8,10 +8,11 @@ STRIPFLAG=
.include <bsd.own.mk>
LDFLAGS+= -nostdlib
.if ${OBJECT_FMT} == "ELF"
LDFLAGS+= -e start
LDFLAGS+= -Wl,-e,start
.else
LDFLAGS+= -e _start -N
LDFLAGS+= -Wl,-e,_start -Wl,-N
.endif
.if ${MACHINE} == "macppc"
@ -19,7 +20,7 @@ PROG= mbr
SRCS= mbr_macppc.S
${PROG}: ${OBJS}
${LD} -o ${PROG}.tmp ${LDFLAGS} -Ttext 0x600 ${OBJS}
${CC} -o ${PROG}.tmp ${LDFLAGS} -Wl,-Ttext,0x600 ${OBJS}
${STRIP} ${PROG}.tmp
${OBJCOPY} -O binary ${PROG}.tmp ${PROG}
rm -f ${PROG}.tmp