Add -fno-unwind-tables
Add CPUFLAGS=-mcpu-strongarm Add ${_MKTARGET_LINK}
This commit is contained in:
parent
666e919182
commit
8247cf6dae
@ -1,4 +1,6 @@
|
||||
# $NetBSD: Makefile,v 1.12 2011/01/22 19:19:23 joerg Exp $
|
||||
# $NetBSD: Makefile,v 1.13 2013/06/30 21:54:26 matt Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
@ -22,7 +24,6 @@ LIBC=
|
||||
LIBCRTBEGIN=
|
||||
LIBCRTEND=
|
||||
|
||||
NOMAN= # defined
|
||||
STRIPFLAG=
|
||||
BINMODE= 444
|
||||
|
||||
@ -36,6 +37,8 @@ CLEANFILES+= vers.c
|
||||
|
||||
CPPFLAGS+= -nostdinc -I. -I${.CURDIR}/../../.. -I${S}
|
||||
CPPFLAGS+= -DRELOC=0x${RELOC}
|
||||
CFLAGS+= -fno-unwind-tables
|
||||
CPUFLAGS= -mcpu=strongarm
|
||||
|
||||
.if !make(obj) && !make(clean) && !make(cleandir)
|
||||
.BEGIN:
|
||||
@ -70,6 +73,7 @@ vers.c: version
|
||||
${.CURDIR}/version "shark" ${NEWVERSWHAT}
|
||||
|
||||
${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
|
||||
${_MKTARGET_LINK}
|
||||
${LD} -s -N -Ttext ${RELOC} -Bstatic -e ${ENTRY} -o ${.TARGET}.aout \
|
||||
${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
|
||||
${OBJCOPY} -O binary ${.TARGET}.aout ${.TARGET}
|
||||
|
Loading…
Reference in New Issue
Block a user