svn commit: r259720 - head/gnu/lib/csu
Dimitry Andric
dim at FreeBSD.org
Sun Dec 22 12:53:57 UTC 2013
Author: dim
Date: Sun Dec 22 12:53:56 2013
New Revision: 259720
URL: http://svnweb.freebsd.org/changeset/base/259720
Log:
For gnu/lib/csu, only use gcc-specific flags when compiling with gcc.
MFC after: 3 days
Modified:
head/gnu/lib/csu/Makefile
Modified: head/gnu/lib/csu/Makefile
==============================================================================
--- head/gnu/lib/csu/Makefile Sun Dec 22 12:10:36 2013 (r259719)
+++ head/gnu/lib/csu/Makefile Sun Dec 22 12:53:56 2013 (r259720)
@@ -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}
More information about the svn-src-head
mailing list