commit: d3e19786b5813d6ce3d3ee80ca4a8163054d97af
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 20 07:30:33 2018 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Wed Jun 20 07:30:33 2018 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=d3e19786
eclass/toolchain: stop adding EPREFIX/Frameworks to searchpath on Darwin
The path isn't used at all, and compilation with gcc-7 yields lots of
warnings by default about the dir not existing. In combination with
-Werror (like gcc build process does) this results in a failure.
eclass/toolchain.eclass | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 4235583495..097cf772ed 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -543,8 +543,14 @@ toolchain_src_prepare() {
"${S}"/gcc/config/darwin.h || die "sed gcc/config/darwin.h
failed"
# add prefixed Frameworks to default search paths (may want to
# change this in a cross-compile)
- sed -i -e "/\"\/System\/Library\/Frameworks\"\,/i\ \
\"${EPREFIX}/Frameworks\"\, " \
- "${S}"/gcc/config/darwin-c.c || die "sed gcc/config/darwin-c.c
failed"
+ # 2018-06-20 (grobian): disabled this because
+ # 1. no packages seem to use this
+ # 2. absence of this dir causes
+ # warnings->errors with gcc-7
+ # 3. after 2. would need to create the dir
+ # somewhere, but 1. still applies
+ #sed -i -e "/\"\/System\/Library\/Frameworks\"\,/i\ \
\"${EPREFIX}/Frameworks\"\, " \
+ # "${S}"/gcc/config/darwin-c.c || die "sed gcc/config/darwin-c.c
failed"
# make sure the pkg config files install into multilib dirs.
# since we configure with just one --libdir, we can't use that