summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2015-06-14 19:37:11 +0000
committermiod <miod@openbsd.org>2015-06-14 19:37:11 +0000
commit45836a372cb92444e52758c7736b69a9cb1afdc7 (patch)
tree17bfc4a03092babea1baf36e0102de298ceb6e75
parentBuild required bits from libkern rather than importing them from libgcc. (diff)
downloadwireguard-openbsd-45836a372cb92444e52758c7736b69a9cb1afdc7.tar.xz
wireguard-openbsd-45836a372cb92444e52758c7736b69a9cb1afdc7.zip
Bring a few routines from libkern in order to avoid linking against libgcc.
-rw-r--r--sys/arch/aviion/stand/boot/Makefile6
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