Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 10-05-2008, 08:49 PM   #1
Registered: Apr 2004
Location: Texas
Distribution: Slackware
Posts: 159

Rep: Reputation: Disabled
Compiling x86 apps on an x86-46 system.

Is there a command option I can pass to ./configure to specify that the binary should be compiled as x86 instead of x86-64?
Old 10-05-2008, 10:35 PM   #2
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,794

Rep: Reputation: 292Reputation: 292Reputation: 292
The option needs to be specified as a parameter on the gcc command. Here are the cpu-type options that you can specify:

./configure scripts vary from application to application. Take a look at your ./configure script to see if it has a variable to specify cpu-type which is repeated on the gcc command line. If it does then use that. If it doesn't then edit the gcc line in the script to add the cpu-type parameter that you need.

Steve Stites
Old 10-06-2008, 03:13 AM   #3
LQ Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285
Typically all you need is to add "-m32" to the CFLAGS and CXXFLAGS. Make sure the compiler supports making 32-bit executables.


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
LXer: Sabayon Linux x86/x86-64 3.5 Stable release LXer Syndicated Linux News 0 07-03-2008 01:00 AM
LXer: Sabayon Linux x86/x86-64 3.5 Loop 2: Beta Release LXer Syndicated Linux News 0 03-17-2008 07:41 PM
LXer: Sabayon Linux x86/x86-64 3.4 [Stable Release] LXer Syndicated Linux News 0 07-25-2007 03:46 AM
Need Life Raft! Kubuntu or Ubuntu / X86 or X86-64 carl0ski Ubuntu 3 07-09-2006 12:13 AM
Boot x86 target from flash, with the image and file system on the x86 host. batsayan Linux - Software 2 08-23-2005 01:09 AM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration