summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Haubenwallner <haubi@gentoo.org>2017-12-21 15:13:57 +0100
committerMichael Haubenwallner <haubi@gentoo.org>2017-12-21 15:13:57 +0100
commit34c88b53b7b7940f643248dedae5961d2f6d718a (patch)
tree13b204bce97119781d5c407d0a761da88bc47208 /profiles/prefix/windows
parentdev-perl/Net-DNS: keyworded 1.130.0 for hppa, bug #639714 (diff)
downloadgentoo-34c88b53b7b7940f643248dedae5961d2f6d718a.tar.gz
gentoo-34c88b53b7b7940f643248dedae5961d2f6d718a.tar.bz2
gentoo-34c88b53b7b7940f643248dedae5961d2f6d718a.zip
profiles/prefix/cygwin/profile.bashrc: xz-utils need -I, not -isystem
During bootstrap-prefix.sh we set CPPFLAGS="-isystem .../usr/include", but on Cygwin xz-utils eventually use the windres compiler, which fails to understand the -isystem flag.
Diffstat (limited to 'profiles/prefix/windows')
-rw-r--r--profiles/prefix/windows/cygwin/profile.bashrc13
1 files changed, 13 insertions, 0 deletions
diff --git a/profiles/prefix/windows/cygwin/profile.bashrc b/profiles/prefix/windows/cygwin/profile.bashrc
new file mode 100644
index 000000000000..f016c87b0d4f
--- /dev/null
+++ b/profiles/prefix/windows/cygwin/profile.bashrc
@@ -0,0 +1,13 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+if [[ ${CATEGORY}/${PN} == app-arch/xz-utils
+ && ${EBUILD_PHASE} == setup
+ && ${CPPFLAGS} == *-isystem*
+]]; then
+ # During bootstrap-prefix.sh we set CPPFLAGS="-isystem $EPREFIX/usr/include",
+ # but on Cygwin xz-utils eventually does use the windres compiler,
+ # which fails to understand -isystem.
+ # As xz-utils has no need for -isystem here, we can use -I instead.
+ CPPFLAGS=${CPPFLAGS//-isystem /-I}
+fi