Teee Teee - 12 days ago 9x
C++ Question

How do I use a sysroot with autoconf?

I am trying to cross-compile fontconfig for a ARM device. I've got a sysroot with all the dependencies etc. Fontconfig uses autoconfig so I did this:

./autogen.sh --host="arm-arm1176jzs-linux-gnueabi" \
--sysconfdir="${SYSROOT}etc" \
--prefix="${PREFIX}" \
--localstatedir="${SYSROOT}var" \

However, there is no flag like
so how do I pass my sysroot to autoconfig ?


I guess you set $CC to your cross-compiler's path. You can easily add some flags:

export CC=gcc --sysroot=/path/to/sysroot

Note that this works with all tools so keep it in mind ;)