LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 05-07-2004, 12:00 PM   #1
crazydutchman
LQ Newbie
 
Registered: Aug 2003
Posts: 6

Rep: Reputation: 0
Maybe you can answer this...


HI, I've been running slackware 9.1 on and off for the last two years and was wondering about something.

I've recently started to looking into making my own packages more and more instead of relying on other ppl's precompiled binaries and was wondering how exactly do you add optimizations to the packages?

Ok, for example this is what I've been doing.

./configure
make
checkinstall -S

Pretty basic... but from what I see in checkinstall these packages are only i386 optimized. I was just wondering how exactly do I optimize a package for i686 or for more personal use as athlon-xp?

I've used just about every possible distro (knoppix, arch, gentoo, redhat :P, mandrake :P, etc...) and in gentoo and Archlinux they use a make.conf file where you set global compile settings (sorry if thats not worded correctly, but work with me here)

Anyway again, my final question in a nutshell would be. How do you I make an optimized package from the simple ./configure type installation?

Any help would be great, even links to websites that explain this. Oh and sorry if this has been asked before, but I did a search and couldn't really find what I was looking for.

Thanks
 
Old 05-07-2004, 12:35 PM   #2
alhobbel
LQ Newbie
 
Registered: Mar 2004
Location: The Netherlands
Distribution: Slackware
Posts: 18

Rep: Reputation: 0
You can export CCFLAGS with the desired optimisation-flags (ex: -fomit-frame-pointer -mcpu=athlon-xp) before you do the configure make (install) routine.

(edit: uhmm, that should be CFLAGS, ofcourse)

Last edited by alhobbel; 05-07-2004 at 12:50 PM.
 
Old 05-07-2004, 03:41 PM   #3
Mark Havel
Member
 
Registered: May 2004
Location: Lyon, France
Distribution: Slackware
Posts: 85

Rep: Reputation: 15
You can also look at the compilation messages. If you see -march=athlon, it means the ./configure script has detected your CPU and put the right compilation flags. Making a "simple" checkinstall can allow you to select the architecture of the package, this will just change the name of the package, but it could be use-full if you plan to release it or change your hardware and want to install your home made package without troubles.
 
  


Reply



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
Anyone have an answer?? waynevnc Linux - Hardware 8 07-01-2004 04:22 AM
Does anybody know the answer........ BajaNick General 10 08-03-2003 10:46 AM
$10 - if you can answer Jaffy Linux - General 5 07-30-2003 12:53 PM
Can someone please answer plastickid Linux - Networking 3 12-15-2002 05:50 PM
answer lakshman Linux - General 1 09-21-2002 01:18 AM

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

All times are GMT -5. The time now is 09:13 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