Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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" \
              --disable-docs 

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

like image 1000
Teee Avatar asked May 24 '26 07:05

Teee


1 Answers

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

like image 115
Coretool Avatar answered May 25 '26 22:05

Coretool



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!