[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compiling into chroot
From: |
Mark Wright |
Subject: |
Re: Compiling into chroot |
Date: |
Fri, 13 Jun 2008 01:15:11 +1000 |
Hello Alon,
Maybe setting LDFLAGS something like one of the
following might help (I am not sure which one you really want):
export LDFLAGS="-L/tmp/device-root/usr/lib -L/usr/lib"
export LDFLAGS="-L/tmp/device-root/usr/lib"
export LDFLAGS="-L/tmp/device-root/usr/lib -L/usr/lib
-R/tmp/device-root/usr/lib -R/usr/lib"
export LDFLAGS="-L/tmp/device-root/usr/lib -R/tmp/device-root/usr/lib"
With gnu ld -rpath is used instead of -R , if you
need to set the runpath as well.
Regards, Mark
On Thu, 12 Jun 2008 16:53:43 +0300
Alon Bar-Lev <address@hidden> wrote:
>
> Hello,
>
> I looked at recent libtool-2 versions and could still not find a
> solution to compile into chroot.
>
> I want to create an image to embedded device using a cross compiler.
>
> So I do:
> mkdir /tmp/device-root
> cd /package1
> ./configure --host=<> --prefix=/usr
> make install DESTDIR=/tmp/device-root
> cd /package2
> ./configure --host=<> --prefix=/usr
> make install DESTDIR=/tmp/device-root
>
> But package2 cannot find libraries as the .la files constains pathes
> to /usr/lib and not /tmp/device-root/usr/lib.
>
> Is there any way to make libtool search the /tmp/device-root prefix,
> and behave correctly? I am thinking like an environment variable so
> that packages will not be effected.
>
> Thanks,
> Alon Bar-Lev.
>
>
> _______________________________________________
> http://lists.gnu.org/mailman/listinfo/libtool
--
- Compiling into chroot, Alon Bar-Lev, 2008/06/12
- Re: Compiling into chroot,
Mark Wright <=
- Re: Compiling into chroot, Roumen Petrov, 2008/06/12
- Re: Compiling into chroot, Alon Bar-Lev, 2008/06/12
- Re: Compiling into chroot, Bob Friesenhahn, 2008/06/12
- Re: Compiling into chroot, Roumen Petrov, 2008/06/12
- Re: Compiling into chroot, Alon Bar-Lev, 2008/06/12
- Re: Compiling into chroot, Richard Purdie, 2008/06/12
- Re: Compiling into chroot, Bob Friesenhahn, 2008/06/12
- Re: Compiling into chroot, Alon Bar-Lev, 2008/06/12
- Re: Compiling into chroot, Bob Friesenhahn, 2008/06/12
- Re: Compiling into chroot, Alon Bar-Lev, 2008/06/12