SImple question: If SuSE 8.1 is built on i586 optimized binaries, why when doing package builds from source does it still make .i386.rpms? Donavan Pantke
Circa Tue. Oct. 29, 2002 at 23:02:52 -0400, a lone cry was heard from
Donavan Pantke
SImple question: If SuSE 8.1 is built on i586 optimized binaries, why when doing package builds from source does it still make .i386.rpms?
Use the --target option in rpm to specify your cpu and platform. Charles -- "Are [Linux users] lemmings collectively jumping off of the cliff of reliable, well-engineered commercial software?" (By Matt Welsh)
On Tuesday 29 October 2002 22:12, Charles Philip Chan wrote:
Circa Tue. Oct. 29, 2002 at 23:02:52 -0400, a lone cry was heard from
Donavan Pantke
in the wasteland called the Internet: SImple question: If SuSE 8.1 is built on i586 optimized binaries, why when doing package builds from source does it still make .i386.rpms?
Use the --target option in rpm to specify your cpu and platform.
Charles
Yeah, I suppose I should have been more specific. Why hasn't the default target changed to i586. Also, I suppose another good question to throw out is: using --target, does this actually change a lot of the build parameters? I noticed during a typical vuild that the ARCH is default set to i386, and the CPU is set to i686. Does that ARCH variable actually mean anything to make and gcc, or is it just superficial, and the CPU tag does all the work? Thanks Donavan Pantke
In the effort of making things a bit more conise, I did some looking up of things, and I suppose that it might be a good idea to ask, where is the default --target stored? I see that this changes a lot of stuff. Thanks! Donavan Pantke
Circa Wed. Oct. 30, 2002 at 00:09:49 -0400, a lone cry was heard from
Donavan Pantke
Yeah, I suppose I should have been more specific. Why hasn't the default target changed to i586.
I guess SuSE just want to set it to the lowest common denominator.
Also, I suppose another good question to throw out is: using --target, does this actually change a lot of the build parameters? I noticed during a typical vuild that the ARCH is default set to i386, and the CPU is set to i686. Does that ARCH variable actually mean anything to make and gcc, or is it just superficial, and the CPU tag does all the work?
It picks up the opt flags from rpmrc for that particular cpu/arch which you can change to suit your taste. The global file is /etc/rpmrc, but individual users can have a .rpmrc in their home directory. As to Arch and CPU, the -mcpu flag in gcc is obsolete, the preferred flag to use now is -march. Charles -- "The world is beating a path to our door" -- Bruce Perens, (Open Sources, 1999 O'Reilly and Associates)
On Tuesday 29 October 2002 23:25, Charles Philip Chan wrote:
I guess SuSE just want to set it to the lowest common denominator.
That's real ood, because most of the whole distro is built with --target=i586. Odd, but okay. lol
It picks up the opt flags from rpmrc for that particular cpu/arch which you can change to suit your taste. The global file is /etc/rpmrc, but individual users can have a .rpmrc in their home directory.
As to Arch and CPU, the -mcpu flag in gcc is obsolete, the preferred flag to use now is -march.
This is real interesting.... I have been digging into the internals of RPM too much lately. lol Even with --target=i586 set, the opt flags still go to ARCH=i486 and CPU=i686. Found it in /usr/lib/rpm/i586-suse-linux. Hmm... very odd. I wonder, does anyone from SuSE care to comment on this design decision? Thanks! Donavan Pantke
As to Arch and CPU, the -mcpu flag in gcc is obsolete, the preferred flag to use now is -march.
This is real interesting.... I have been digging into the internals of RPM too much lately. lol Even with --target=i586 set, the opt flags still go to ARCH=i486 and CPU=i686. Found it in /usr/lib/rpm/i586-suse-linux. Hmm... very odd. I wonder, does anyone from SuSE care to comment on this design decision?
Thanks! Donavan Pantke
Time to eat my own words. Totally wrong. ARch is set right. Still digging. Will actually post real message next time around. lol Donavan Pantke
participants (2)
-
Charles Philip Chan
-
Donavan Pantke