LinuxQuestions.org

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

oldstinkyfish 11-14-2004 05: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 12: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 02: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 07: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 07: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 06:49 AM.