I'm trying to cross-compile the latest version of yubikey-personalization for a raspberry-pi on my x64 debian box, but it's failing on the ./configure. I was able to successfully build libyubikey, which runs successfully on the pi, but I can't figure out how to make the ./configure see libyubikey.
Code:
...
checking for libyubikey... no
configure: error: libyubikey v1.5+ not found, see https://developers.yubico.com/yubico-c/
I'm using the crosstool-ng toolchain, and have tried various combinations of the below, and with and without copying libyubikey into the toolchain environment, and it keeps failing as above.
Code:
CC=~/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-gcc LDFLAGS="-L~/build/yubico-c/usr/lib/" CFLAGS="-I$~/build/yubico-c/usr/include" CPPFLAGS="-I~/build/yubico-c/usr/include" lt_cv_deplibs_check_method=pass_all ./configure --prefix=~/build/yubikey-personalization/usr/ --with-libyubikey-prefix=~/build/yubico-c/usr/ --without-libyubikey-prefix --host=armel --build=armhf-unknown-linux-gnu
Anyone have suggestions? I'm sure I've spent more time trying to figure this out than it would have taken to just compile it on the pi.
*Edit* Debian stable(wheezy)
SOLUTION:
Wound up firing up a QEMU chroot to build arm code in. Definitely slower than x64 gcc cross compiling, but at least it finds libyubikey.