For gnu/lib/csu, only use gcc-specific flags when compiling with gcc.
MFC after: 3 days
This commit is contained in:
parent
964c4daeba
commit
aa0067c72b
@ -15,10 +15,12 @@ OBJS= crtbegin.o crtend.o crtbeginT.o
|
||||
SOBJS= crtbeginS.o crtendS.o
|
||||
CSTD?= gnu89
|
||||
CFLAGS+= -DIN_GCC -DHAVE_LD_EH_FRAME_HDR -DDT_CONFIG -D__GLIBC__=3
|
||||
CFLAGS+= -finhibit-size-directive -fno-inline-functions \
|
||||
-fno-exceptions -fno-zero-initialized-in-bss \
|
||||
-fno-zero-initialized-in-bss -fno-toplevel-reorder \
|
||||
-fno-asynchronous-unwind-tables -fno-omit-frame-pointer
|
||||
.if ${COMPILER_TYPE} == "gcc"
|
||||
CFLAGS+= -finhibit-size-directive -fno-toplevel-reorder
|
||||
.endif
|
||||
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. \
|
||||
-I${CCDIR}/cc_tools
|
||||
CRTS_CFLAGS= -DCRTSTUFFS_O -DSHARED ${PICFLAG}
|
||||
|
Loading…
x
Reference in New Issue
Block a user