Re: -pipe passed to gcc via Automake

2007-11-06 Thread NightStrike
On 10/21/07, Ralf Wildenhues <[EMAIL PROTECTED]> wrote: > Hello whoever(?), > > * NightStrike wrote on Sun, Oct 21, 2007 at 07:13:19PM CEST: > > If I wanted -pipe passed in to gcc all the time, do I put that in > > AM_CPPFLAGS or AM_CFLAGS? > > You pass it to configure via CFLAGS, or CC: > ./conf

Re: -pipe passed to gcc via Automake

2007-10-21 Thread Ralf Corsepius
On Sun, 2007-10-21 at 16:24 -0500, Bob Friesenhahn wrote: > On Sun, 21 Oct 2007, Benoit SIGOURE wrote: > > > 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 con

Re: -pipe passed to gcc via Automake

2007-10-21 Thread Benoit SIGOURE
On Oct 21, 2007, at 11:24 PM, Bob Friesenhahn wrote: On Sun, 21 Oct 2007, Benoit SIGOURE wrote: 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 # S

Re: -pipe passed to gcc via Automake

2007-10-21 Thread Bob Friesenhahn
On Sun, 21 Oct 2007, Benoit SIGOURE wrote: 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 CX

Re: -pipe passed to gcc via Automake

2007-10-21 Thread Harlan Stenn
Benoit wrote: > I usually do this in my configure.ac: > > AC_PROG_CXX > # Speed GCC compilation up. > if test "$GXX" = yes; then >CXXFLAGS="$CXXFLAGS -pipe" > fi I use case statements wherever possible instead of 'test'. While 'case' is a shell builtin, 'test' may not be. If there are a bun

Re: -pipe passed to gcc via Automake

2007-10-21 Thread Benoit SIGOURE
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_C

Re: -pipe passed to gcc via Automake

2007-10-21 Thread Ralf Wildenhues
Hello whoever(?), * NightStrike wrote on Sun, Oct 21, 2007 at 07:13:19PM CEST: > If I wanted -pipe passed in to gcc all the time, do I put that in > AM_CPPFLAGS or AM_CFLAGS? You pass it to configure via CFLAGS, or CC: ./configure CC='gcc -pipe' It makes not much sense in *CPPFLAGS: can't it h

-pipe passed to gcc via Automake

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