summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2020-03-19 11:27:40 -0400
committerMike Gilbert <floppym@gentoo.org>2020-03-19 11:27:40 -0400
commitadd5f6d75a7b0c5d8aec6e44e48faef59f6d3c96 (patch)
tree091bb51548816849b80898c496853023e8f70c49 /dev-util/ninja/ninja-1.9.0.ebuild
parentdev-util/ninja: version bump to 1.10.0 (diff)
downloadgentoo-add5f6d75a7b0c5d8aec6e44e48faef59f6d3c96.tar.gz
gentoo-add5f6d75a7b0c5d8aec6e44e48faef59f6d3c96.tar.bz2
gentoo-add5f6d75a7b0c5d8aec6e44e48faef59f6d3c96.zip
dev-util/ninja: fixup CFLAGS handling
Package-Manager: Portage-2.3.92_p3, Repoman-2.3.20_p118 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'dev-util/ninja/ninja-1.9.0.ebuild')
-rw-r--r--dev-util/ninja/ninja-1.9.0.ebuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/dev-util/ninja/ninja-1.9.0.ebuild b/dev-util/ninja/ninja-1.9.0.ebuild
index 9bf6dd5f8f9..36783d7d7b6 100644
--- a/dev-util/ninja/ninja-1.9.0.ebuild
+++ b/dev-util/ninja/ninja-1.9.0.ebuild
@@ -51,6 +51,10 @@ PATCHES=(
"${FILESDIR}/ninja-1.9.0-musl.patch"
)
+PATCHES=(
+ "${FILESDIR}"/ninja-cflags.patch
+)
+
run_for_build() {
if tc-is-cross-compiler; then
local -x AR=$(tc-getBUILD_AR)
@@ -66,8 +70,8 @@ run_for_build() {
src_compile() {
tc-export AR CXX
- # configure.py uses CFLAGS instead of CXXFLAGS
- export CFLAGS=${CXXFLAGS}
+ # configure.py appends CFLAGS to CXXFLAGS
+ unset CFLAGS
run_for_build ${EPYTHON} configure.py --bootstrap --verbose || die