blob: f016c87b0d4f85fb03850bbbbd053a7decab2bf6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
|