build-style/meson: add nm to binaries and export LD, AR, CPPFLAGS and
LDFLAGS.
This commit is contained in:
parent
3c64439561
commit
608f10ea59
1 changed files with 9 additions and 7 deletions
|
@ -35,6 +35,7 @@ do_configure() {
|
||||||
c = '${CC}'
|
c = '${CC}'
|
||||||
cpp = '${CXX}'
|
cpp = '${CXX}'
|
||||||
ar = '${AR}'
|
ar = '${AR}'
|
||||||
|
nm = '${NM}'
|
||||||
ld = '${LD}'
|
ld = '${LD}'
|
||||||
strip = '${STRIP}'
|
strip = '${STRIP}'
|
||||||
readelf = '${READELF}'
|
readelf = '${READELF}'
|
||||||
|
@ -56,14 +57,15 @@ endian = '${_MESON_TARGET_ENDIAN}'
|
||||||
EOF
|
EOF
|
||||||
configure_args+=" --cross-file=${meson_crossfile}"
|
configure_args+=" --cross-file=${meson_crossfile}"
|
||||||
|
|
||||||
# Meson tries to compile natively with CC, CXX, so when cross
|
# Meson tries to compile natively with CC, CXX, LD, AR
|
||||||
# compiling, we need to set those to the host versions.
|
# so when cross compiling, we need to set those to the
|
||||||
export CC=${CC_host} CXX=${CXX_host}
|
# host versions.
|
||||||
|
export CC=${CC_host} CXX=${CXX_host} LD=${LD_host} AR=${AR_host}
|
||||||
|
|
||||||
# Meson tries to use CFLAGS and CPPFLAGS when compiling under
|
# Meson tries to use CFLAGS, CXXFLAGS, CPPFLAGS and LDFLAGS when compiling under
|
||||||
# native: true, so we use XBPS_CFLAGS and XBPS_CPPFLAGS which
|
# native: true, so we use XBPS_CFLAGS, XBPS_CXXFLAGS, XBPS_CPPFLAGS and XBPS_LDFLAGS
|
||||||
# are set to (C|CXX)FLAGS_host
|
# which are set to (C|CXX|CPP|LD)FLAGS_host
|
||||||
export CFLAGS=${CFLAGS_host} CXXFLAGS=${CXXFLAGS_host}
|
export CFLAGS=${CFLAGS_host} CXXFLAGS=${CXXFLAGS_host} CPPFLAGS=${CPPFLAGS_host} LDFLAGS=${LDFLAGS_host}
|
||||||
|
|
||||||
# Meson tries to use our wrapped cross-only pkg-config to find
|
# Meson tries to use our wrapped cross-only pkg-config to find
|
||||||
# libraries even when 'native: true' (build against the host platform)
|
# libraries even when 'native: true' (build against the host platform)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue