summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorjohns <johns@cvs.openbsd.org>1998-03-02 07:33:02 +0000
committerjohns <johns@cvs.openbsd.org>1998-03-02 07:33:02 +0000
commit1e0ecc89e7e1158038a66f47406167e1a8518b37 (patch)
treecf7dae7b0c320965d0fce4aa4857f683efbc28cf /sys
parentaefd6fa74736f4e5820219e3e25e0e7705fe4c0d (diff)
gcc may generate references to libgcc.a at any time, we lucked out in previous
verions of gcc, but for 2.8 the boot stuff needs to be linked against libgcc.a, to get ___cmpdi2 for cd9660.o Since ld doesn't automatically link against libgcc.a we have to add `cc -print-libgcc-file-name` to the end of the ld link line(s), whenever we see things like this.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc/stand/boot/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc/stand/boot/Makefile b/sys/arch/sparc/stand/boot/Makefile
index f452cad0342..dbd73915a88 100644
--- a/sys/arch/sparc/stand/boot/Makefile
+++ b/sys/arch/sparc/stand/boot/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.7 1997/09/17 10:46:15 downsj Exp $
+# $OpenBSD: Makefile,v 1.8 1998/03/02 07:33:01 johns Exp $
# $NetBSD: Makefile,v 1.2 1995/09/30 21:43:38 pk Exp $
.PATH: ${.CURDIR}/../common
@@ -14,7 +14,7 @@ CFLAGS= -O2 -I${.CURDIR}/../common -I${.CURDIR}/../../../../arch \
-I${.CURDIR}/../../../.. -I${.CURDIR}/../../../../lib/libsa ${DEFS}
${PROG}: ${OBJS} ${LIBS}
- ${LD} -N -T ${RELOC} -e start ${OBJS} ${LIBSA} ${LIBKERN} ${LIBZ}
+ ${LD} -N -T ${RELOC} -e start ${OBJS} ${LIBSA} ${LIBKERN} ${LIBZ} `cc -print-libgcc-file-name`
# convert to Sun magic
@size a.out
(echo -n 01 | tr 01 '\01\03'; tail +3c a.out) > ${.TARGET}