Changeset - r16020:0ce61db330d1
[Not reviewed]
master
0 1 0
smatz - 14 years ago 2010-09-03 13:09:56
smatz@openttd.org
(svn r20723) -Fix: don't define _FORTIFY_SOURCE when not compiling with GCC, other compilers would likely barf on GLIBC code
1 file changed with 7 insertions and 1 deletions:
0 comments (0 inline, 0 general)
config.lib
Show inline comments
 
@@ -1262,7 +1262,13 @@ make_cflags_and_ldflags() {
 

	
 
		# Each debug level reduces the optimization by a bit
 
		if [ $enable_debug -ge 1 ]; then
 
			CFLAGS="$CFLAGS -g -D_DEBUG -D_FORTIFY_SOURCE=2"
 
			CFLAGS="$CFLAGS -g -D_DEBUG"
 
			if basename "$cc_host" | grep "gcc" &>/dev/null; then
 
				# Define only when compiling with GCC, some
 
				# GLIBC versions use GNU extensions in a way
 
				# that breaks build with at least ICC
 
				CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
 
			fi
 
			if [ "$os" = "PSP" ]; then
 
				CFLAGS="$CFLAGS -G0"
 
			fi
0 comments (0 inline, 0 general)