LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 01-11-2005, 04:29 PM   #1
orvtech.com
LQ Newbie
 
Registered: Apr 2004
Location: Miami, US
Distribution: Gentoo
Posts: 23

Rep: Reputation: 15
apt-build and Fedora ?


Is it possible to use apt-build to rebuild the all the OS Fedora optimized for may P3 or for a Pentium-M or Pentium4 and so on ...?

i mean like gentoo does.. you can handle certain variables and pass some flags to the gcc and the make proces so that it will optimize the packages for the architechture specified.
 
Old 02-07-2005, 05:48 AM   #2
johnnydangerous
Member
 
Registered: Jan 2005
Location: Sofia, Bulgaria
Distribution: Fedora Core 4 Rawhide
Posts: 431

Rep: Reputation: 30
I guess it's on kernel level coz it should be handling the gcc don;t know
 
Old 02-07-2005, 04:08 PM   #3
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
Consider searching the fedora-devel-list archives on extensive explanations why this would be wasted effort.

http://www.redhat.com/mailman/listin...ora-devel-list

For instance, all i386 packages are optimised for i686 architecture already, but with i386 compatible instruction set. The most important system binaries, e.g. Linux kernel, C Standard Library, OpenSSL, are available optimised for specific architectures, e.g. the glibc i686 package.
 
Old 02-07-2005, 04:40 PM   #4
orvtech.com
LQ Newbie
 
Registered: Apr 2004
Location: Miami, US
Distribution: Gentoo
Posts: 23

Original Poster
Rep: Reputation: 15
CLFALGS

yes but im refering to for instance pentium-m optimization
or some thing that spesific like

CFLAG= "march=pentium-m -O2 fomit-fram-pointers"
 
Old 02-07-2005, 05:01 PM   #5
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
Have fun trying to find out in lots of hours of recompiling hundreds of packages, where -fomit-frame-pointer would result in noticable performance increase and not make things worse.
Anyway, it is not my intention to discuss this here and/or refresh what has been beaten to death elsewhere.

But sure, you can modify the default $RPM_OPT_FLAGS in /usr/lib/rpm/redhat/rpmrc, and any package specific ones you find in the src.rpm spec files.

Last edited by misc; 02-07-2005 at 05:03 PM.
 
Old 02-07-2005, 05:04 PM   #6
orvtech.com
LQ Newbie
 
Registered: Apr 2004
Location: Miami, US
Distribution: Gentoo
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by misc
Have fun trying to find out in lots of hours of recompiling hundreds of packages, where -fomit-frame-pointer would result in noticable performance increase and not make things worse.
Anyway, it is not my intention to discuss this here and/or refresh what has been beaten to death elsewhere.

But sure, you can modify the default $RPM_OPT_FLAGS in /usr/lib/rpm/redhat/rpmrc, and any package specific ones you find in the src.rpm spec files.
thanks a lot that was what i was looking for!!!!!
 
Old 02-08-2005, 05:56 AM   #7
johnnydangerous
Member
 
Registered: Jan 2005
Location: Sofia, Bulgaria
Distribution: Fedora Core 4 Rawhide
Posts: 431

Rep: Reputation: 30
Quote:
Originally posted by misc
Have fun trying to find out in lots of hours of recompiling hundreds of packages, where -fomit-frame-pointer would result in noticable performance increase and not make things worse.
Anyway, it is not my intention to discuss this here and/or refresh what has been beaten to death elsewhere.

But sure, you can modify the default $RPM_OPT_FLAGS in /usr/lib/rpm/redhat/rpmrc, and any package specific ones you find in the src.rpm spec files.
for Athlon? what flag
 
Old 02-08-2005, 08:35 AM   #8
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
Take a look at the rpmrc file. Several architectures are predefined. You need not change anything if you just wanted to compile a source rpm package specifically for Athlon. You would run "rpmbuild --target athlon --rebuild filename.src.rpm" and get the .athlon.rpm after some time.
 
Old 02-08-2005, 08:52 AM   #9
orvtech.com
LQ Newbie
 
Registered: Apr 2004
Location: Miami, US
Distribution: Gentoo
Posts: 23

Original Poster
Rep: Reputation: 15
OK i have decided to install Gentoo instead of optimicing fedora. thanks any way
 
Old 02-08-2005, 09:54 AM   #10
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
All i386 Fedora packages are built with -m32 -march=i386 -mtune=pentium4 already.
 
  


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
Apt build i_m_meen Debian 4 07-04-2005 01:58 PM
Apt-build RobNyc Debian 1 02-22-2005 02:14 PM
apt-build?? wrat Debian 7 02-22-2005 01:07 AM
apt-build ahz Fedora 0 01-10-2005 10:10 PM
apt-build oldstinkyfish Linux - Software 0 11-14-2004 03:58 AM

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

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