Skip to content

Commit

Permalink
Merge pull request #384 from escalade/gccfix
Browse files Browse the repository at this point in the history
gcc: compile with -std=gnu++98 to fix build with gcc6
  • Loading branch information
lrusak committed Jun 1, 2016
2 parents b6370f0 + a23c52e commit 280fb28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/lang/gcc/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ PKG_CONFIGURE_OPTS_HOST="--target=$TARGET_NAME \
--enable-checking=release \
--with-default-libstdcxx-abi=gcc4-compatible"

pre_configure_host() {
export CXXFLAGS="$CXXFLAGS -std=gnu++98"
}

pre_configure_bootstrap() {
setup_toolchain host
}
Expand Down

0 comments on commit 280fb28

Please sign in to comment.