aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoakim Tjernlund <joakim.tjernlund@transmode.se>2015-07-21 10:11:33 +0200
committerMike Frysinger <vapier@gentoo.org>2015-07-22 23:47:32 -0400
commit70b1b4ec394ab952a5dcf2bbe2c888852e9412b4 (patch)
treec93a776e95a6711a4d8c38c52f16dd1ef998698a /wrappers
parentconfig.site: punt berkdb cache values (diff)
downloadcrossdev-70b1b4ec394ab952a5dcf2bbe2c888852e9412b4.tar.gz
crossdev-70b1b4ec394ab952a5dcf2bbe2c888852e9412b4.tar.bz2
crossdev-70b1b4ec394ab952a5dcf2bbe2c888852e9412b4.zip
cross-emerge: handle LDFLAGS too
BUILD_LDFLAGS was missing, add it too. Signed-off-by: Joakim Tjernlund <joakim.tjernlund@transmode.se> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'wrappers')
-rwxr-xr-xwrappers/cross-emerge5
1 files changed, 3 insertions, 2 deletions
diff --git a/wrappers/cross-emerge b/wrappers/cross-emerge
index 0ea38e3..fc6117e 100755
--- a/wrappers/cross-emerge
+++ b/wrappers/cross-emerge
@@ -20,7 +20,7 @@ fi
# Portage defaults CBUILD to CHOST, so we have to remove CHOST
# from the env to get a "good" value for CBUILD
-query_vars="CBUILD CFLAGS CXXFLAGS CPPFLAGS"
+query_vars="CBUILD CFLAGS CXXFLAGS CPPFLAGS LDFLAGS"
clean_vars="${query_vars} CHOST SYSROOT PORTAGE_CONFIGROOT"
eval $(env $(printf -- '-u %s ' ${clean_vars}) \
portageq envvar -v ${query_vars} | sed s:^:_E_:)
@@ -28,7 +28,8 @@ eval $(env $(printf -- '-u %s ' ${clean_vars}) \
: ${BUILD_CFLAGS=${_E_CFLAGS}}
: ${BUILD_CXXFLAGS=${_E_CXXFLAGS}}
: ${BUILD_CPPFLAGS=${_E_CPPFLAGS}}
-export CBUILD BUILD_CFLAGS BUILD_CXXFLAGS BUILD_CPPFLAGS
+: ${BUILD_LDFLAGS=${_E_LDFLAGS}}
+export CBUILD BUILD_CFLAGS BUILD_CXXFLAGS BUILD_CPPFLAGS BUILD_LDFLAGS
: ${CROSS_CMD:=emerge --root-deps=rdeps}
exec ${CROSS_CMD} "$@"