diff options
author | dim <dim@FreeBSD.org> | 2013-12-22 12:53:56 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2013-12-22 12:53:56 +0000 |
commit | aa0067c72ba0f8efb5e50b79a4d59d2a93631bb2 (patch) | |
tree | bfa19c1d719beb30900725f50debbfb76c4a3e45 /gnu | |
parent | 964c4daebac41fa6a99910d9c69ebfabdbd1373d (diff) | |
download | FreeBSD-src-aa0067c72ba0f8efb5e50b79a4d59d2a93631bb2.zip FreeBSD-src-aa0067c72ba0f8efb5e50b79a4d59d2a93631bb2.tar.gz |
For gnu/lib/csu, only use gcc-specific flags when compiling with gcc.
MFC after: 3 days
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/lib/csu/Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gnu/lib/csu/Makefile b/gnu/lib/csu/Makefile index 1efe865..05327f7 100644 --- a/gnu/lib/csu/Makefile +++ b/gnu/lib/csu/Makefile @@ -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} |