xbps-src: make BUILD_32BIT work for packages using C++.

This commit is contained in:
Juan RP 2010-05-21 00:30:27 +02:00
parent 50150858eb
commit 9408af3761

View file

@ -45,6 +45,7 @@ set_build_vars()
LDFLAGS="-L/lib32 -L/usr/lib32 $LDFLAGS"
export PATH="/bin:/usr/bin:$PATH"
export CC="gcc -m32"
export CXX="g++ -m32"
fi
PKG_CONFIG="$XBPS_MASTERDIR/usr/bin/pkg-config"
PKG_CONFIG_LIBDIR="$XBPS_MASTERDIR/usr/lib/pkgconfig"
@ -71,5 +72,8 @@ unset_build_vars()
unset LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$SAVE_LDLIBPATH
fi
if [ -n "$BUILD_32BIT" ]; then
unset CC CXX
fi
unset PKG_CONFIG LDFLAGS CPPFLAGS PKG_CONFIG_LIBDIR CFLAGS CXXFLAGS
}