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.
This commit is contained in:
parent
d53a997e5f
commit
4bb30370dd
2 changed files with 6 additions and 0 deletions
1
common/environment/build/cross.sh
Symbolic link
1
common/environment/build/cross.sh
Symbolic link
|
@ -0,0 +1 @@
|
|||
../configure/cross.sh
|
5
common/environment/configure/cross.sh
Normal file
5
common/environment/configure/cross.sh
Normal file
|
@ -0,0 +1,5 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue