From 0ea82663e0885477b6e48810c5b1fe6f4d5c629d Mon Sep 17 00:00:00 2001 From: Arun Thomas Date: Wed, 24 Mar 2010 10:11:17 +0000 Subject: [PATCH] Fix crtso building with GCC --- etc/mk/minix.ack.mk | 2 +- etc/mk/minix.gcc.mk | 13 +------------ 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/etc/mk/minix.ack.mk b/etc/mk/minix.ack.mk index 1e5f310a1..6f060aca1 100644 --- a/etc/mk/minix.ack.mk +++ b/etc/mk/minix.ack.mk @@ -9,7 +9,7 @@ # .endif ASMCONV=gas2ack -AFLAGS+=-D__ASSEMBLY__ -D_EM_WSIZE=4 -D__minix -I/usr/src/include -w -wo +AFLAGS+=-D__ASSEMBLY__ -D_EM_WSIZE=4 -D__minix -w -wo CPP.s=${CC} -E ${AFLAGS} ASMCONVFLAGS+=-mi386 diff --git a/etc/mk/minix.gcc.mk b/etc/mk/minix.gcc.mk index e08d92fd8..5d69cf02b 100644 --- a/etc/mk/minix.gcc.mk +++ b/etc/mk/minix.gcc.mk @@ -1,13 +1,2 @@ -.SUFFIXES: .o .s +AFLAGS+=-D__ASSEMBLY__ -D_EM_WSIZE=4 -D__minix -ASMCONV=asmconv -CPP.s=${CC} ${AFLAGS} -E -x assembler-with-cpp -ASMCONVFLAGS+=-mi386 ack gnu - -# Need to convert ACK assembly files to GNU assembly before building -.s.o: - ${_MKTARGET_COMPILE} - ${CPP.s} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.PREFIX}.ack.s - ${ASMCONV} ${ASMCONVFLAGS} ${.PREFIX}.ack.s ${.PREFIX}.gnu.s - ${COMPILE.s} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.PREFIX}.gnu.s -o ${.TARGET} - rm -rf ${.PREFIX}.ack.s ${.PREFIX}.gnu.s -- 2.44.0