diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2015-06-14 19:37:12 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2015-06-14 19:37:12 +0000 |
commit | 89e6fce5556e71de06d73a14cbd8015ffc115446 (patch) | |
tree | 79e487156941a15a422a4d9e1caba06666383484 /sys/arch | |
parent | ef78dabfa71d921f48efce2c35f9ee6579984469 (diff) |
Bring a few routines from libkern in order to avoid linking against libgcc.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/aviion/stand/boot/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/aviion/stand/boot/Makefile b/sys/arch/aviion/stand/boot/Makefile index 8f72c0fa0e5..130a604b67a 100644 --- a/sys/arch/aviion/stand/boot/Makefile +++ b/sys/arch/aviion/stand/boot/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.6 2014/07/13 21:18:44 jasper Exp $ +# $OpenBSD: Makefile,v 1.7 2015/06/14 19:37:11 miod Exp $ SIZE?= size @@ -19,6 +19,8 @@ CLEANFILES+=boot boot.ELF SRCS= crt.c boot.c conf.c devopen.c version.c SRCS+= oaic.c oosiop.c scsi.c sd.c SRCS+= dev_net.c if_le.c +.PATH: ${S}/lib/libkern +SRCS+= moddi3.c muldi3.c negdi2.c qdivrem.c OBJS= ${SRCS:S/.c/.o/g} LIBS= ${LIBSA} ${LIBPROM} ${LIBZ} LDFLAGS+= -N -Ttext ${STAGE2_RELOC} -e start @@ -30,7 +32,7 @@ boot: boot.ELF ${MDEC_DIR}/a2coff boot.ELF boot boot.ELF: ${OBJS} ${LIBS} - ${LD} ${LDFLAGS} -o $@ ${OBJS} ${LIBS} `${CC} -print-libgcc-file-name` + ${LD} ${LDFLAGS} -o $@ ${OBJS} ${LIBS} @${SIZE} $@ install: boot |