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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-24-2003, 10:21 AM
|
#1
|
Member
Registered: Apr 2003
Location: Ontario, Canada
Distribution: Arch Linux
Posts: 533
Rep:
|
how do i recompile for i686?
I recently installed Jamd linux after botching my rh9 and am quite happy with it - especially the speed!
Anyway, since it is optimized for i686, I want to recompile some source rpms I downloaded but I can't seem to find any info on how to do it. I know it is easy to do and my searching *should* have turned up something but alas, searching this forum and googles turned up no specific answers. I need the exact command to do it. Anyone help out?
Much appreciated.
|
|
|
07-24-2003, 10:25 AM
|
#2
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
|
|
|
07-24-2003, 10:28 AM
|
#3
|
Senior Member
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251
Rep:
|
here's how I did it...
download and extract an app source.
then execute these commands
export CFLAGS='-march=i686'
export CPPFLAGS='-march=i686'
then its business as usual.
./configure; make; make install
the configure script should pick up the CFLAGS and include it into the makefiles. if you have any doubts look at the gcc commands output to the console when its make'ing.
commands should look something like this
gcc -Wall -O2 -march=i686 .... etc
hth,
jpbarto
|
|
|
07-24-2003, 10:31 AM
|
#4
|
Member
Registered: Apr 2003
Location: Ontario, Canada
Distribution: Arch Linux
Posts: 533
Original Poster
Rep:
|
hmmmm, I got this:
I know there is a lack of dev packages with Jamd, I'm gonna try on my other box, thanks for the info.
|
|
|
07-24-2003, 10:54 AM
|
#5
|
Member
Registered: Apr 2003
Location: Ontario, Canada
Distribution: Arch Linux
Posts: 533
Original Poster
Rep:
|
yeah, that seems to work, although I get some dep issues with some of the files, in case anyone wants to know without going to the link:
rpm --rebuild --target i686 filename
then look in your /usr/src directory under /rpm/SOURCES or somewhere else in the /usr/src dir for the end result.
|
|
|
All times are GMT -5. The time now is 11:26 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|