Explorar o código

Use -pipe when GCC

Nils Maier %!s(int64=11) %!d(string=hai) anos
pai
achega
fd3348cc88
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      configure.ac

+ 8 - 0
configure.ac

@@ -87,6 +87,14 @@ AC_PROG_MKDIR_P
 AC_PROG_YACC
 AM_PROG_AS
 
+# Speed GCC compilation up.
+if test "$GCC" = yes; then
+  CFLAGS="$CFLAGS -pipe"
+fi
+if test "$GXX" = yes; then
+  CXXFLAGS="$CXXFLAGS -pipe"
+fi
+
 AC_CHECK_TOOL([AR], [ar], [:])
 if test "x$AR" = "x:"; then
   AC_MSG_FAILURE([ar is not found in the system.])