LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-26-2005, 05:51 AM   #1
asprayama
LQ Newbie
 
Registered: Jan 2005
Location: Yerevan
Posts: 3

Rep: Reputation: 0
rpmbuild desired cpu options


Hello.
I am preparing rpms for my vintage laptop pentium 120 mhz running RH 7.0 on a pentium 4 running red hat 7.0 in vmware
When I do rpmbuild --rebuild -t target i386 somepackage.src.rpm
it compiles with -march i386 and -mtune i686
so that packages optimized to run on i686, but I need them to be optimized for i586 or even for i486 (on my another laptop)
So, how can I tell rpmbuild to build packages with my desired mtune ?
Thank You very much
 
Old 03-27-2005, 01:42 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,340

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
"When I do rpmbuild --rebuild -t target i386 somepackage.src.rpm
it compiles with -march i386 and -mtune i686
so that packages optimized to run on i686, but I need them to be optimized for i586 or even for i486 (on my another laptop)
So, how can I tell rpmbuild to build packages with my desired mtune ?"

I am not certain but you may need to invoke rpmbuild with a different command, perhaps:

rpmbuild -t target i386 --recompile somepackage.src.rpm

------------------------
Steve Stites
 
  


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
rpmbuild --with : mysql - unknown option. How to pass extra options to build? fireman949 Red Hat 0 07-06-2005 06:53 PM
Desired delay in potfix hotrodowner Linux - Software 2 03-11-2005 05:37 AM
SSH and desired interface stakhous Linux - Networking 1 02-05-2005 01:10 AM
rpmbuild options ras123 Linux - Software 3 05-02-2004 10:27 PM
Best distro for an HP laptop? Your opinions desired. Alvis Linux - Laptop and Netbook 0 10-17-2003 08:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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