🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3704

How do I cross-compile with libtool?

#3704
From: DeMarcus
Date: Thu, 01 Dec 2011 10:06
25 lines
2058 bytes
Hi,

I'm trying to cross-compile X11. The X11 packages use libtool.

For all my packages I use --prefix=/usr (to be installed on an embedded 
system) but when installing I use make install DESTDIR=/some/other/path 
to be able to stage before deploying. I guess this is the common way to 
do it?

Now, libtool seems to not being able to handle that kind of 
cross-compilation.

The only solutions I've found on the net are hacks, like going into all 
.la files and change libdir='/usr/lib' to 
libdir='/some/other/path/usr/lib'. That didn't solve it though.

The only solution I've found so far that seems to solve it is to remove 
all .la files after each package has been installed.

Is there a correct solution or do we have to wait until libtool supports 
cross-compilation?


Thanks,
Daniel
Technical Details
Message-ID: <4ed7519e$0$294$14726298@news.sunsite.dk>
Path: arc1-ca.pugleaf.net!lh20ni50501pbb.0!nntp.google.com!news1.google.com!goblin3!goblin.stu.neva.ru!newsfeed2.funet.fi!newsfeeds.funet.fi!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!feed118.news.tele.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1025b4,f9c4fbad5ed90650,start
X-Google-NewGroupId: yes
X-Google-Attributes: gidfeffdbf771,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.68.35.68 with SMTP id f4mr2194293pbj.5.1322734056406;
        Thu, 01 Dec 2011 02:07:36 -0800 (PST)
Path: arc1-ca.pugleaf.net!lh20ni50501pbb.0!nntp.google.com!news1.google.com!goblin3!goblin.stu.neva.ru!newsfeed2.funet.fi!newsfeeds.funet.fi!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!feed118.news.tele.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Thu, 01 Dec 2011 11:06:15 +0100
From: DeMarcus <use_my_alias@hotmail.com>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111105 Thunderbird/8.0
MIME-Version: 1.0
Newsgroups: comp.unix.programmer,gnu.misc.discuss
Subject: How do I cross-compile with libtool?
Lines: 25
Message-ID: <4ed7519e$0$294$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 83.241.132.98
X-Trace: news.sunsite.dk DXC=Taej]eH?ZKU;OkaSc<8a?TYSB=nbEKnk[W>U?6<3<iSX]^AOER3m08ZIO:bP:S4obX?kXX3nN`7GX11oN?TUSV\Xooco`i12cJV
X-Complaints-To: staff@sunsite.dk
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit