Convert to using CC instead of LD, as LDFLAGS is for CC not LD.
This commit is contained in:
parent
fa073991b3
commit
a0f0fb81a8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user