Changeset - r14529:2f906f049f66
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2010-02-12 18:45:34
rubidium@openttd.org
(svn r19110) -Fix (r19107): if GCC 3.2 has the trouble, then don't allow it
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
config.lib
Show inline comments
 
@@ -1147,14 +1147,14 @@ make_compiler_cflags() {
 
			ldflags="$ldflags -ipo $CFLAGS"
 
		fi
 
	else
 
		# Enable some things only for certain GCC versions
 
		cc_version=`$1 -dumpversion | cut -c 1,3`
 

	
 
		if [ $cc_version -lt 32 ]; then
 
			log 1 "configure: error: gcc older than 3.2 can't compile OpenTTD because of its poor template support"
 
		if [ $cc_version -lt 33 ]; then
 
			log 1 "configure: error: gcc older than 3.3 can't compile OpenTTD because of its poor template support"
 
			exit 1
 
		fi
 

	
 
		flags="$flags -Wall -Wno-multichar -Wsign-compare -Wundef"
 
		flags="$flags -Wwrite-strings -Wpointer-arith"
 
		flags="$flags -W -Wno-unused-parameter -Wformat=2"
0 comments (0 inline, 0 general)