Jon Dufresne wrote:
Hi,

I am trying to configure programs for a cross compile. I've been
following the cross-lfs as a guide to get me on my way but I diverge
from it when I want a more custom setup. One aspect of my project that
I would like to keep is to have all development files on the build
system only. In the end I want the target system to only have binaries
that were compiled by the build system's cross compiler using gcc's
sysroot.

  Correct.

One issue I am having is that during the autotools configure stage of
most packages, the configure script will make judgments based on my
build system's environment rather than my target system's environment.
For example, I am trying to compile directfb-1.0.0 which uses gnu
autotools and I see the following during configure.

./configure --build=${HOST} --host=${TARGET}    --prefix=/usr
...
...
checking for sdl-config... /usr/bin/sdl-config


Now, I know I haven't installed SDL on my target system and I know I
have SDL on my build system, and I can see the sdl-config file that
configure picks up. So now the configure script is making decisions
based on my build system rather than my target system.

 This is my build order for directfb using framebuffer.

pkg-config-0.23
 Then use export PKG_CONFIG_SYSROOT_DIR=<where you put it> with these
zlib


libpng
libjpg
freetype
directfb
directfb_examples

This _may_ cure the problem but remember you can --disable- sdl/vnc/x11


Any idea how to resolve this?

Thanks,
Jon
_______________________________________________
Clfs-support mailing list
[email protected]
http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org



_______________________________________________
Clfs-support mailing list
[email protected]
http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org

Reply via email to