vp-build/common/environment/configure/cross.sh
Juan RP 4bb30370dd xbps-src: set up C{,XX}FLAGS and LDFLAGS correctly for cross compilation.
This way there's no need to set LDFLAGS per-pkg just to fix cross compilation
in multiple packages.
2015-10-17 11:05:21 +02:00

6 lines
168 B
Bash

if [ -n "$CROSS_BUILD" ]; then
CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include"
CXXFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include"
LDFLAGS+=" -L${XBPS_CROSS_BASE}/usr/lib"
fi