LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-27-2004, 09:21 PM   #1
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Rep: Reputation: 30
./configure, CFLAGS, checkinstall, and kernel arch type


hi,
i use kernel 2.6.9 with the processor as pentium m (centrino). i believe that is i686. when i used checkinstall on a compiled app, it displayed "i386." echo $CFLAGS returns nothing. does that mean if i just do the default ./configure, i will not get the binaries that are optimized for my computer? shouldn't CFLAGS use the setting from the kernel?
anyway, i then tried
Code:
CFLAGS="-march=i686 -O2 -pipe" ./configure
so during make, i could see that gcc was called with the -march=i686 flag. however, checkinstall still displayed "i386." i'm guessing checkinstall is wrong, and the compiled binaries are optimized for my computer.
thanks.
 
Old 12-27-2004, 10:52 PM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Checkinstall doesn't detect anything - it just sets the default name - check /etc/checkinstall/checkinstallrc and change ARCHITECTURE. 'echo $CFLAGS' should only produce something if you've exported that to the environment for general compiling. But, yeah, if gcc was picking it up, it's all good.
 
Old 12-28-2004, 01:31 AM   #3
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by digiot
'echo $CFLAGS' should only produce something if you've exported that to the environment for general compiling.
i think i will export CFLAGS. it seems like a good idea, and i believe it's not going to cause any harm (because gentoo has it in /etc/make.conf for all compilations--i believe). if anyone sees anything wrong/dangerous with my thinking, please point it out.
thanks.
 
Old 12-28-2004, 01:39 AM   #4
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Well, mplayer likes to make up its own flags and there may be another program or two that doesn't like it, but it's easier to unset it on the rare exception that constantly set it for most things. So AFAIK, it's a good plan. (I do it, anyway. )
 
  


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
CFLAGS to compile kernel frzburn Linux - Software 4 03-05-2005 05:42 AM
compiling kernel & checkinstall Fascistchicken Slackware 2 10-14-2004 05:03 AM
Arch linux Help Cannot Type Pass bigbossandy Linux - Newbie 1 12-20-2003 10:11 AM
How do I configure my standard Session-type erik_wout_ew2 Linux - Software 4 12-09-2003 11:02 AM
error when type ./configure eduac Linux - Software 3 07-10-2003 01:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:33 AM.

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