LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How do I specify i686 arch/cpu when compiling? (https://www.linuxquestions.org/questions/slackware-14/how-do-i-specify-i686-arch-cpu-when-compiling-309310/)

Anonymo 07-29-2006 11:16 AM

Quote:

Originally Posted by gbonvehi
No, something like ./configure CFLAGS="-march=i686" but be carefull becaue this will override program default flags...
Another way could be to edit the Makefile generated by configure adding the flag.


wouldn't ./configure CFLAGS="-mcpu=i686" be an option?

cwwilson721 07-29-2006 11:22 AM

Yes. But if you forget to do that...

See why setting it globally makes a little more sense?

If you are compiling for different architechures, setting it each time DOES make sense, but if it is just for the one type, global lessens the chance of an 'oops. I forgot...'

And we all have forgotten...


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