From 45836a372cb92444e52758c7736b69a9cb1afdc7 Mon Sep 17 00:00:00 2001 From: miod Date: Sun, 14 Jun 2015 19:37:11 +0000 Subject: [PATCH] Bring a few routines from libkern in order to avoid linking against libgcc. --- sys/arch/aviion/stand/boot/Makefile | 6 ++++-- 1 file 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 -- 2.20.1