iglupkg: set prefix for auto_cross

This commit is contained in:
Ella Stanforth 2022-04-23 17:04:26 +00:00
parent e47897cd77
commit 120954fb04

View file

@ -113,6 +113,11 @@ export CXXFLAGS=$CFLAGS
export CROSS_EXTRA_CXXFLAGS="$CROSS_EXTRA_CFLAGS -nostdinc++ -isystem $WITH_CROSS_DIR/include/c++/v1/" export CROSS_EXTRA_CXXFLAGS="$CROSS_EXTRA_CFLAGS -nostdinc++ -isystem $WITH_CROSS_DIR/include/c++/v1/"
auto_cross() { auto_cross() {
if [ -z "$FOR_CROSS" ]; then
PREFIX=/usr
else
PREFIX=$FOR_CROSS_DIR
fi
[ -z "$WITH_CROSS" ] && return [ -z "$WITH_CROSS" ] && return
export CFLAGS="$CFLAGS $CROSS_EXTRA_CFLAGS" export CFLAGS="$CFLAGS $CROSS_EXTRA_CFLAGS"
export CXXFLAGS="$CFLAGS $CROSS_EXTRA_CXXFLAGS" export CXXFLAGS="$CFLAGS $CROSS_EXTRA_CXXFLAGS"