LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-30-2003, 02:27 PM   #1
Kocil
Member
 
Registered: Feb 2003
Distribution: Redhat since 5.2, Slackware since 9.0, Vector since 4.0
Posts: 209

Rep: Reputation: 31
Question cross compilation


Hi all.

I have a pentium IV computer.
I use it as a host to build slack's packages for other old pentium computers.

I want to do that this way:
1. compile the tarbal to a temporay dir
2. add some modifications into the temp dir
3. makepkg in those temp dir.

My problem is on the first step.
How can I "make install" to a temporary directory ?

Thanks.
 
Old 11-30-2003, 02:46 PM   #2
dkaplowitz
Member
 
Registered: Oct 2002
Location: Havertown PA
Distribution: Ubuntu/RHEL/Fedora
Posts: 253

Rep: Reputation: 31
I've not tried it, but wouldn't it be
Code:
make install /path-to-target-dir
?

I didn't check man make for an example of the syntax.
 
Old 11-30-2003, 03:01 PM   #3
mrpdaemon
Member
 
Registered: Jun 2003
Distribution: Slackware 9.1
Posts: 41

Rep: Reputation: 15
isn't

./configure --prefix=/path/to/your/temp/dir

what you are looking for?
 
Old 12-12-2003, 06:01 PM   #4
Kocil
Member
 
Registered: Feb 2003
Distribution: Redhat since 5.2, Slackware since 9.0, Vector since 4.0
Posts: 209

Original Poster
Rep: Reputation: 31
>> ./configure --prefix=/path/to/your/temp/dir

No. That would make the package unusable.

However i found the answers on various SlackBuild script Slack's source code.

./configure --prefix=/usr DESTDIR=/temp/platform
 
Old 12-12-2003, 08:19 PM   #5
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 47
Actually, the answer depends on whether the app you're compiling supports DESTDIR in the first place (most modern apps made by competent programmers will).

The ./configure and make are to be done as "normal"... eg.:
Code:
./configure --prefix=/usr
make
The make install bit would depends on whether the app you're compiling (actually it's Makefile) supports DESTDIR... Here's a method to test:

Code:
grep -r DESTDIR *
If it returns something (or most likely some things), that resemble Makefile entries... then, most likely the app supports DESTDIR... So to install to a temp dir, you can safely do this:
Code:
make DESTDIR=/tmp/temp_dir install
No DESTDIR support? Don't despair... do this instead:
Code:
make prefix=/tmp/temp_dir install
Hope this helps

Last edited by Azmeen; 12-18-2003 at 06:36 PM.
 
Old 12-18-2003, 09:41 AM   #6
Kocil
Member
 
Registered: Feb 2003
Distribution: Redhat since 5.2, Slackware since 9.0, Vector since 4.0
Posts: 209

Original Poster
Rep: Reputation: 31
I needed sometime to try it.
But at least, I found two packages that work only with your suggestion
- fltk
- bluefish

I believe I'll find some more "lesser" packages like them.

Thank you very much.

Last edited by Kocil; 12-18-2003 at 09:43 AM.
 
Old 12-18-2003, 01:53 PM   #7
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
I've done a few using:
make prefix=/tmp/dir install
or:
make DESTDIR=/tmp/dir install
It just depends on the specs in the Makefile.
 
  


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
ARM-Linux Cross compilation Toolkits 2.95 hazzyb Programming 3 02-06-2009 10:21 AM
Cross-Compilation Question lucky6969b Linux - Software 0 12-01-2005 07:31 PM
Kernel compilation error using cross compiler bond_7942 Linux - Software 0 02-02-2005 12:18 AM
Kernel cross compilation and install disks gargamel Slackware 0 12-18-2003 03:05 PM
Cross-compilation radhapriya Linux - Software 0 08-11-2003 07:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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