LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Where to include cflags for make? (noob) (https://www.linuxquestions.org/questions/programming-9/where-to-include-cflags-for-make-noob-104461/)

asd 10-15-2003 07:58 PM

Where to include cflags for make? (noob)
 
Where/how do I put my cflags so that ./configure sucks it up?
I just switched from Gentoo to Slack, and I dunno how to do this stuff. Is recompiling X with -mcpu=pentium3 cool? Trying to make a low latency audio box. Can't find a make.conf. My arch is also 486 where it should be 686.

Hko 10-16-2003 11:51 AM

Run ./configure like this:

$ CFLAGS="-g -O2" ./configure
$ make

asd 10-16-2003 03:23 PM

ok.
 
But isn't it possible with a global make.conf like Gentoo? Maybe I should read some Gentoo forums. The "march" thing doesnt matter; has something to do with "mtrr" I think, which configure sniffs. Mplayer's configure was really nice. Compiled itself with mmx/sse. But thanks anywho.

Hko 10-16-2003 05:33 PM

Re: ok.
 
Quote:

Originally posted by asd
But isn't it possible with a global make.conf like Gentoo?
Don't know anything about Gentoo, but if you want to make CFLAGS global, you could have a

export CFLAGS="-g -O2"

in /etc/profile.


All times are GMT -5. The time now is 10:12 PM.