LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   debian make settings (http://www.linuxquestions.org/questions/linux-software-2/debian-make-settings-254627/)

oldstinkyfish 11-14-2004 06:24 AM

debian make settings
 
These are the settings im looking for;


CHOST="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O3 -pipe"
CXXFLAGS="-march=i686 -O3 -pipe"

I want to know hwere they are so I can compile software that matches my computer hardware.

tox2ik 11-14-2004 01:32 PM

those are stored in your shell. just type the above in and you will have it. and i suggest you read a bash-howto-for-beginers.

foo_bar_foo 11-14-2004 03:48 PM

yea i set those things in
~/.bashrc
export CFLAGS=' '
then just
export CXXFLAGS=$CFLAGS
you can also go
Code:

if [ `whoami` = "root" ]; then
  export CFLAGS='    '
  export CXXFLAGS=$CFLAGS

so they are set when you "su"
some packages don't pick these up and for some packages you have to
unset CFLAGS
unset CXXFLAGS
or they will turn out broken

oldstinkyfish 11-15-2004 08:18 AM

Quote:

Originally posted by tox2ik
those are stored in your shell. just type the above in and you will have it. and i suggest you read a bash-howto-for-beginers.
sorry what do I type in?

oldstinkyfish 11-15-2004 08:19 AM

Quote:

Originally posted by foo_bar_foo
yea i set those things in
~/.bashrc
export CFLAGS=' '
then just
export CXXFLAGS=$CFLAGS
you can also go
Code:

if [ `whoami` = "root" ]; then
  export CFLAGS='    '
  export CXXFLAGS=$CFLAGS

so they are set when you "su"
some packages don't pick these up and for some packages you have to
unset CFLAGS
unset CXXFLAGS
or they will turn out broken

I will do that, maybe Ill get a book at the end of this week


All times are GMT -5. The time now is 07:06 PM.