Fix crtso building with GCC
This commit is contained in:
parent
407316e451
commit
0ea82663e0
2 changed files with 2 additions and 13 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue