iglupkg: set prefix for auto_cross
This commit is contained in:
parent
e47897cd77
commit
120954fb04
1 changed files with 5 additions and 0 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue