summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-01-16 15:31:53 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-01-16 15:31:53 +0000
commit82e75ecac9125477cc8a7435ab55b2e61806141c (patch)
treef0229d920d7cd7153bcb3323a77fc1995aa0a666 /sys/arch
parentd136bb0a555cfbbed5fe8846b1c96a9bf5d21d45 (diff)
Fix cross-builds of the kernel. (ELF only).
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/alpha/conf/Makefile.alpha6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/alpha/conf/Makefile.alpha b/sys/arch/alpha/conf/Makefile.alpha
index e4400beb05a..f332e7ab692 100644
--- a/sys/arch/alpha/conf/Makefile.alpha
+++ b/sys/arch/alpha/conf/Makefile.alpha
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.alpha,v 1.18 2000/11/07 21:54:45 art Exp $
+# $OpenBSD: Makefile.alpha,v 1.19 2001/01/16 15:31:52 art Exp $
# $NetBSD: Makefile.alpha,v 1.27 1996/12/01 06:12:25 jonathan Exp $
# Makefile for OpenBSD
@@ -109,7 +109,11 @@ assym.h: genassym
./genassym >assym.h
genassym: genassym.o
+.if defined(DESTDIR)
+ ${CC} -o $@ -nostdlib -L${DESTDIR}/usr/lib ${DESTDIR}/usr/lib/crtbegin.o ${DESTDIR}/usr/lib/crtend.o ${DESTDIR}/usr/lib/crt0.o genassym.o -lgcc -lc -lgcc
+.else
${CC} -o $@ genassym.o
+.endif
genassym.o: ${ALPHA}/alpha/genassym.c
${HOSTED_C}