svn commit: r259851 - in stable: 10/gnu/lib/csu 9/gnu/lib/csu

Dimitry Andric dim at FreeBSD.org
Wed Dec 25 00:40:43 UTC 2013


Author: dim
Date: Wed Dec 25 00:40:42 2013
New Revision: 259851
URL: http://svnweb.freebsd.org/changeset/base/259851

Log:
  MFC r259720:
  
  For gnu/lib/csu, only use gcc-specific flags when compiling with gcc.

Modified:
  stable/10/gnu/lib/csu/Makefile
Directory Properties:
  stable/10/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/9/gnu/lib/csu/Makefile
Directory Properties:
  stable/9/gnu/lib/csu/   (props changed)

Modified: stable/10/gnu/lib/csu/Makefile
==============================================================================
--- stable/10/gnu/lib/csu/Makefile	Wed Dec 25 00:39:04 2013	(r259850)
+++ stable/10/gnu/lib/csu/Makefile	Wed Dec 25 00:40:42 2013	(r259851)
@@ -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-stable-10 mailing list