LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-21-2011, 12:32 PM   #1
ralf@hagakure.me
LQ Newbie
 
Registered: Jan 2011
Location: Planet Earth
Distribution: Ubuntu and Slack
Posts: 5

Rep: Reputation: 0
Compiling 32-bit programs: setting ARCH to “x86_64”


Hi all,

I am new to Slackware and I am wondering how you set the ARCH variable.
On the multilib wiki page it says:

"Rather than editing the script and change/remove CFLAGS definitions, you can set the ARCH to “x86_64” and save yourself some time."

So from this I understand that they advise against editing the Slackbuild script. How do I set the ARCH variable on the command line or is it a configuration file I need to edit?

I am running Slackware 13.1 64.

Best regards,

R
 
Old 05-21-2011, 12:52 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Hi,

In your terminal, instead of typing './SomeSlackbuild.sh', type 'ARCH=x86_64 ./SomeSlackbuild.sh'

Also, better post in the Slackware forum such Slackware-specific questions to get more relevant answers.
 
Old 05-22-2011, 02:53 AM   #3
ralf@hagakure.me
LQ Newbie
 
Registered: Jan 2011
Location: Planet Earth
Distribution: Ubuntu and Slack
Posts: 5

Original Poster
Rep: Reputation: 0
Hi Didier,

Thank you for responding. I'll make sure to post my next questions in the relevant section.

Kind regards,

R
 
  


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
How to use 32 bit C libraries on 64 bit Arch Linux MTK358 Programming 23 09-22-2011 01:19 AM
[SOLVED] arch - x86 or x86_64? Gerard Lally Linux - Kernel 2 04-29-2010 07:00 PM
Can you kexec at boot from a 32-bit (x86) to 64-bit (x86_64) kernel? Shingoshi Linux - Kernel 15 06-26-2009 10:08 PM
compiling 32 bit application on 64 bit linux(x86_64) uttam_h Linux - Software 16 07-19-2008 02:33 PM
Can't get kernel to compile as x86_64 arch... Electrode Linux - Software 22 12-18-2003 09:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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