LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-24-2003, 10:21 AM   #1
yowwww
Member
 
Registered: Apr 2003
Location: Ontario, Canada
Distribution: Arch Linux
Posts: 533

Rep: Reputation: 30
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.
 
Old 07-24-2003, 10:25 AM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
http://linux.wku.edu/archive/wku-lin.../msg00235.html
maybe this will give you some tips.
 
Old 07-24-2003, 10:28 AM   #3
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
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
 
Old 07-24-2003, 10:31 AM   #4
yowwww
Member
 
Registered: Apr 2003
Location: Ontario, Canada
Distribution: Arch Linux
Posts: 533

Original Poster
Rep: Reputation: 30
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.
 
Old 07-24-2003, 10:54 AM   #5
yowwww
Member
 
Registered: Apr 2003
Location: Ontario, Canada
Distribution: Arch Linux
Posts: 533

Original Poster
Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
2.6.9-5.EL-hugemem-i686, 2.6.9-5.EL-i686, 2.6.9-5.EL-smp-i686 , Which? arsham Linux - General 2 05-08-2005 12:21 AM
2.6.9-5.EL-hugemem-i686, 2.6.9-5.EL-i686, 2.6.9-5.EL-smp-i686 , Which? arsham Linux - Enterprise 1 05-07-2005 08:20 PM
Recompile Kernel – SRPM – athlon or i686 ? lets-eat-gary Mandriva 1 12-23-2004 01:00 PM
What is the simplest way to recompile Mandrake/SUSE/Debian for i686? jimmyz74 Linux - Newbie 3 08-14-2004 05:15 PM
is celeron 500 an i686 ? if so how to move from i386 to i686 raft Linux - Hardware 1 12-22-2003 07:58 AM

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

All times are GMT -5. The time now is 11:26 PM.

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