build_vars: (un)set PKG_CONFIG also in the chroot.
This commit is contained in:
parent
d3047787ba
commit
622c398a66
|
@ -49,21 +49,21 @@ set_build_vars()
|
||||||
export PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
|
export PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
|
||||||
export PKG_CONFIG="$PKG_CONFIG"
|
export PKG_CONFIG="$PKG_CONFIG"
|
||||||
else
|
else
|
||||||
|
PKG_CONFIG="/usr/bin/pkg-config"
|
||||||
PKG_CONFIG_LIBDIR="/usr/lib/pkgconfig"
|
PKG_CONFIG_LIBDIR="/usr/lib/pkgconfig"
|
||||||
fi
|
fi
|
||||||
CFLAGS="$CFLAGS $XBPS_CFLAGS"
|
CFLAGS="$CFLAGS $XBPS_CFLAGS"
|
||||||
CXXFLAGS="$CXXFLAGS $XBPS_CXXFLAGS"
|
CXXFLAGS="$CXXFLAGS $XBPS_CXXFLAGS"
|
||||||
|
|
||||||
export PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR" \
|
export PKG_CONFIG="$PKG_CONFIG" PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR" \
|
||||||
CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS"
|
CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS"
|
||||||
}
|
}
|
||||||
|
|
||||||
unset_build_vars()
|
unset_build_vars()
|
||||||
{
|
{
|
||||||
if [ -z "$in_chroot" ]; then
|
if [ -z "$in_chroot" ]; then
|
||||||
unset LDFLAGS CPPFLAGS
|
unset LDFLAGS CPPFLAGS LD_LIBRARY_PATH
|
||||||
unset PKG_CONFIG LD_LIBRARY_PATH
|
|
||||||
export LD_LIBRARY_PATH=$SAVE_LDLIBPATH
|
export LD_LIBRARY_PATH=$SAVE_LDLIBPATH
|
||||||
fi
|
fi
|
||||||
unset PKG_CONFIG_LIBDIR CFLAGS CXXFLAGS
|
unset PKG_CONFIG PKG_CONFIG_LIBDIR CFLAGS CXXFLAGS
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user