summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-08-09 12:49:35 +0100
committerSam James <sam@gentoo.org>2024-08-09 12:49:35 +0100
commit7136d821f9c15695768bb9ecd0d62cf5ff824b6a (patch)
treeba14ab5cded53eae742bcb3f2202f92fa9cbe8c8 /eclass
parentdev-cpp/asio: Stabilize 1.30.2 ppc, #937590 (diff)
downloadgentoo-7136d821f9c15695768bb9ecd0d62cf5ff824b6a.tar.gz
gentoo-7136d821f9c15695768bb9ecd0d62cf5ff824b6a.tar.bz2
gentoo-7136d821f9c15695768bb9ecd0d62cf5ff824b6a.zip
Revert "toolchain.eclass: drop *_FOR_TARGET in src_test"
This reverts commit c87ab053be64e6c9f7b9e4ab1cca3099e37471f0. I think I was wrong. Gah. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 1797fc59cf88..89af435dfbf6 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1979,12 +1979,18 @@ toolchain_src_test() {
nonfatal emake -C "${WORKDIR}"/build -k "${GCC_TESTS_CHECK_TARGET}" \
RUNTESTFLAGS=" \
${GCC_TESTS_RUNTESTFLAGS} \
+ CFLAGS_FOR_TARGET='${CFLAGS_FOR_TARGET:-${CFLAGS}}' \
+ CXXFLAGS_FOR_TARGET='${CXXFLAGS_FOR_TARGET:-${CXXFLAGS}}' \
+ LDFLAGS_FOR_TARGET='${LDFLAGS_FOR_TARGET:-${LDFLAGS}}' \
CFLAGS='${CFLAGS}' \
CXXFLAGS='${CXXFLAGS}' \
FCFLAGS='${FCFLAGS}' \
FFLAGS='${FFLAGS}' \
LDFLAGS='${LDFLAGS}' \
" \
+ CFLAGS_FOR_TARGET="${CFLAGS_FOR_TARGET:-${CFLAGS}}" \
+ CXXFLAGS_FOR_TARGET="${CXXFLAGS_FOR_TARGET:-${CXXFLAGS}}" \
+ LDFLAGS_FOR_TARGET="${LDFLAGS_FOR_TARGET:-${LDFLAGS}}" \
CFLAGS="${CFLAGS}" \
CXXFLAGS="${CXXFLAGS}" \
FCFLAGS="${FCFLAGS}" \