Parcourir la source

Add -fcombine check to allow IMA compiling w/ gcc 4.x

Peter S. Mazinger il y a 18 ans
Parent
commit
ca2b43ffed
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      Rules.mak

+ 2 - 0
Rules.mak

@@ -259,6 +259,8 @@ endif
 OPTIMIZATION+=$(call check_gcc,-Os,-O2)
 OPTIMIZATION+=$(call check_gcc,-Os,-O2)
 # Use the gcc 3.4 -funit-at-a-time optimization when available
 # Use the gcc 3.4 -funit-at-a-time optimization when available
 OPTIMIZATION+=$(call check_gcc,-funit-at-a-time,)
 OPTIMIZATION+=$(call check_gcc,-funit-at-a-time,)
+# gcc 4.x needs -fcombine, else building all sources at once fails
+OPTIMIZATION+=$(call check_gcc,-fcombine,)
 
 
 # Add a bunch of extra pedantic annoyingly strict checks
 # Add a bunch of extra pedantic annoyingly strict checks
 XWARNINGS=$(subst ",, $(strip $(WARNINGS))) -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
 XWARNINGS=$(subst ",, $(strip $(WARNINGS))) -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing