automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -pipe passed to gcc via Automake


From: Benoit SIGOURE
Subject: Re: -pipe passed to gcc via Automake
Date: Sun, 21 Oct 2007 21:50:24 +0200

On Oct 21, 2007, at 7:13 PM, NightStrike wrote:

If I wanted -pipe passed in to gcc all the time, do I put that in
AM_CPPFLAGS or AM_CFLAGS?

I usually do this in my configure.ac:

AC_PROG_CXX
# Speed GCC compilation up.
if test "$GXX" = yes; then
  CXXFLAGS="$CXXFLAGS -pipe"
fi

-or-

AC_PROG_CC
# Speed GCC compilation up.
if test "$GCC" = yes; then
  CFLAGS="$CFLAGS -pipe"
fi

(the $GCC and $GXX variables are set by AC_PROG_{CC,CXX})
Cheers,

--
Benoit Sigoure aka Tsuna
EPITA Research and Development Laboratory


Attachment: PGP.sig
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]