LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   apt-build and Fedora ? (https://www.linuxquestions.org/questions/fedora-35/apt-build-and-fedora-276660/)

orvtech.com 01-11-2005 04:29 PM

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.

johnnydangerous 02-07-2005 05:48 AM

I guess it's on kernel level coz it should be handling the gcc don;t know

misc 02-07-2005 04:08 PM

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.

orvtech.com 02-07-2005 04:40 PM

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"

misc 02-07-2005 05:01 PM

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.

orvtech.com 02-07-2005 05:04 PM

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!!!!!

johnnydangerous 02-08-2005 05:56 AM

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

misc 02-08-2005 08:35 AM

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.

orvtech.com 02-08-2005 08:52 AM

OK i have decided to install Gentoo instead of optimicing fedora. thanks any way

misc 02-08-2005 09:54 AM

All i386 Fedora packages are built with -m32 -march=i386 -mtune=pentium4 already.


All times are GMT -5. The time now is 08:42 PM.