[yocto] [ADT] Autotools: configure using --with-libtool-sysroot

Khem Raj raj.khem at gmail.com
Wed Aug 22 16:29:09 PDT 2012


On Wed, Aug 22, 2012 at 4:22 PM, Rudolf Streif <rudolf.streif at linux.com> wrote:
> I tried, according to the documentation at
> http://www.yoctoproject.org/docs/current/adt-manual/adt-manual.html#extracting-the-root-filesystem),
> to configure and compile the autotooled GNU Hello World Applcation for x86
> and ARM with
>
> ./configure --host=i586-poky-linux
> --with-libtool-sysroot=${YOCTODIR}/adt-sysroots/x86
>
> and
>
> ./configure --host=armv5te-poky-linux-gnueabi
> --with-libtool-sysroot=${YOCTODIR}/adt-sysroots/arm
>
> As expected configure does not recognize --with-libtool-sysroot: configure:
> WARNING: unrecognized options: --with-libtool-sysroot.
>
> Running the suggested commands:
>
> $ libtoolize --automake
> $ aclocal -I ${OECORE_NATIVE_SYSROOT}/usr/share/aclocal \
>         [-I <dir_containing_your_project-specific_m4_macros>]
> $ autoconf
> $ autoheader
> $ automake -a
>
> did not make a difference (same error message). However, compiling the
> application worked just fine.
>
> Questions:
>
> What exactly is --with-libtool-sysroot supposed to do?

its an option for libtool sysroot support actually it was called --with-sysroot
but it conflicts with gcc and binutils which already had that option
before lib tool added it.

> What could be the reason that the steps to update the configure script to
> recognize the option do not work?
>

so I guess if you have new enough libtool this option should be effective
but will be ignored for old libtools (pre 2.4)

> Suggestion:
>
> Add --prefix to ./configure --host=armv5te-poky-linux-gnueabi
> --with-libtool-sysroot=<sysrootdir> --prefix=<sysrootdir>/<prefix> so that
> make install actually installs into the system root.
>
> :rjs
>
>
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>



More information about the yocto mailing list