For gnu/lib/csu, only use gcc-specific flags when compiling with gcc.
MFC after: 3 days
This commit is contained in:
parent
0b5d46ce4d
commit
6b1fe0f9ac
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=259720
@ -15,10 +15,12 @@ OBJS= crtbegin.o crtend.o crtbeginT.o
|
|||||||
SOBJS= crtbeginS.o crtendS.o
|
SOBJS= crtbeginS.o crtendS.o
|
||||||
CSTD?= gnu89
|
CSTD?= gnu89
|
||||||
CFLAGS+= -DIN_GCC -DHAVE_LD_EH_FRAME_HDR -DDT_CONFIG -D__GLIBC__=3
|
CFLAGS+= -DIN_GCC -DHAVE_LD_EH_FRAME_HDR -DDT_CONFIG -D__GLIBC__=3
|
||||||
CFLAGS+= -finhibit-size-directive -fno-inline-functions \
|
.if ${COMPILER_TYPE} == "gcc"
|
||||||
-fno-exceptions -fno-zero-initialized-in-bss \
|
CFLAGS+= -finhibit-size-directive -fno-toplevel-reorder
|
||||||
-fno-zero-initialized-in-bss -fno-toplevel-reorder \
|
.endif
|
||||||
-fno-asynchronous-unwind-tables -fno-omit-frame-pointer
|
CFLAGS+= -fno-inline-functions -fno-exceptions \
|
||||||
|
-fno-zero-initialized-in-bss -fno-asynchronous-unwind-tables \
|
||||||
|
-fno-omit-frame-pointer
|
||||||
CFLAGS+= -I${GCCLIB}/include -I${GCCDIR}/config -I${GCCDIR} -I. \
|
CFLAGS+= -I${GCCLIB}/include -I${GCCDIR}/config -I${GCCDIR} -I. \
|
||||||
-I${CCDIR}/cc_tools
|
-I${CCDIR}/cc_tools
|
||||||
CRTS_CFLAGS= -DCRTSTUFFS_O -DSHARED ${PICFLAG}
|
CRTS_CFLAGS= -DCRTSTUFFS_O -DSHARED ${PICFLAG}
|
||||||
|
Loading…
Reference in New Issue
Block a user