LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-14-2004, 06:24 AM   #1
oldstinkyfish
Member
 
Registered: Nov 2003
Posts: 148

Rep: Reputation: 15
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.

Last edited by oldstinkyfish; 11-14-2004 at 06:52 AM.
 
Old 11-14-2004, 01:32 PM   #2
tox2ik
LQ Newbie
 
Registered: Nov 2004
Location: norway
Distribution: gentoo
Posts: 23

Rep: Reputation: 15
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.
 
Old 11-14-2004, 03:48 PM   #3
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
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
 
Old 11-15-2004, 08:18 AM   #4
oldstinkyfish
Member
 
Registered: Nov 2003
Posts: 148

Original Poster
Rep: Reputation: 15
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?
 
Old 11-15-2004, 08:19 AM   #5
oldstinkyfish
Member
 
Registered: Nov 2003
Posts: 148

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I make my hdparm settings permanent? zmaint Mandriva 2 11-17-2006 01:44 PM
cflag settings for gentoo make.conf shanenin Linux - Software 1 10-27-2005 10:27 PM
Make All users have same default settings banner Linux - General 2 06-03-2005 01:44 AM
how to make settings the same for all users tapanga Linux - Software 3 06-01-2004 12:45 PM
can't make SUSE remember IP settings after reboot...#$% roflash Linux - Networking 0 05-27-2002 10:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration