Skip to content

Commit

Permalink
gcc7/libgcc7: clear MacPorts optflags
Browse files Browse the repository at this point in the history
optflag Os causes gcc7 build to fail bootstrapping with older gcc compilers
use gcc default optflags

we probably will need to do the same to other gcc versions 7+
we probably also want to clear the other potentially-troublesome configure.XYZflags

fixes: https://trac.macports.org/tickets/59706
  • Loading branch information
kencu committed Nov 28, 2019
1 parent 38cb99c commit cfbc425
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lang/gcc7/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,12 @@ configure.env-append \
build.env-append \
"CPP=${configure.cc} -E" \
"CXXCPP=${configure.cxx} -E"

# gcc default optflags are required to build gcc7 with older compilers
# see https://trac.macports.org/ticket/599706
# we probably also want to clear out the rest of the configure.XYZ flags
configure.optflags

configure.cc-append [get_canonical_archflags]
configure.cc_archflags
configure.cxx-append ${configure.cxx_archflags}
Expand Down

0 comments on commit cfbc425

Please sign in to comment.