wpa_supplicant: fix cross build (v2).
This commit is contained in:
parent
800a985a0c
commit
5bb6358751
1 changed files with 4 additions and 5 deletions
|
@ -19,12 +19,11 @@ do_build() {
|
|||
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
export PKG_CONFIG_PATH="$XBPS_CROSS_BASE/usr/lib/pkgconfig"
|
||||
make CC="$XBPS_CROSS_TRIPLET-gcc" LD="$XBPS_CROSS_TRIPLET-ld" \
|
||||
AR="$XBPS_CROSS_TRIPLET-ar" RANLIB="$XBPS_CROSS_TRIPLET-ranlib" \
|
||||
PREFIX=/usr ${makejobs}
|
||||
else
|
||||
make PREFIX=/usr ${makejobs}
|
||||
export PKG_CONFIG_SYSROOT_DIR="$XBPS_CROSS_BASE"
|
||||
export CFLAGS="-I$XBPS_CROSS_BASE/usr/include/libnl3 $CFLAGS"
|
||||
fi
|
||||
|
||||
make CC="$CC" LD="$LD" AR="$AR" RANLIB="$RANLIB" PREFIX=/usr ${makejobs}
|
||||
}
|
||||
|
||||
do_install() {
|
||||
|
|
Loading…
Reference in a new issue