From fd3348cc88f65f0a9ba51de5011880de0fd7463d Mon Sep 17 00:00:00 2001 From: Nils Maier Date: Mon, 19 May 2014 10:11:14 +0200 Subject: [PATCH] Use -pipe when GCC --- configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.ac b/configure.ac index fc2d982a..5b394d46 100644 --- a/configure.ac +++ b/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.])