LinuxQuestions.org
Help answer threads with 0 replies.
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, 01: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, 01:52 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2 on Lenovo Thinkpad W520
Posts: 7,763

Rep: Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691
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, 03: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


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

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

All times are GMT -5. The time now is 04:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration