Teee Teee - 1 year ago 122
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 ?

Answer Source

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 ;)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download