summaryrefslogtreecommitdiff
path: root/lang/nhc98/patches/patch-ad
blob: f74c30fc28582c2ecdef1c4a31adfb305b3555e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ad,v 1.1 2004/01/16 00:59:18 kristerw Exp $

--- src/runtime/Kernel/Makefile.orig	2003-02-05 15:39:18.000000000 +0000
+++ src/runtime/Kernel/Makefile	2003-12-16 16:31:29.000000000 +0000
@@ -38,8 +38,9 @@
 ${AOBJS} ${OOBJS}: ${OBJDIR}/%.o: %.c
 	${CC} -c ${CFLAGS} -o $@ $<
 ${SOBJS}: ${OBJDIR}/%.o: %.c
-	${CC} -S ${CFLAGS} -o - $< | sed '/.align 32/s/32/4/' |\
-		 ${CC} -c -x assembler ${CFLAGS} -o $@ -
+	${CC} -S ${CFLAGS} -o - $< |\
+		sed -e '/.align 32/s/32/4/' -e '/.p2align 5/s/5/2/' |\
+		${CC} -c -x assembler-with-cpp ${CFLAGS} -o $@ -
 
 LINKS = bytecode.h cinterface.h mutlib.h newmacros.h \
 	node.h runtime.h stableptr.h newbytecode.h bytecode_o.h