Skip to content

Commit

Permalink
BUILD: Fix build on newlib-based systems
Browse files Browse the repository at this point in the history
  • Loading branch information
criezy committed Sep 9, 2016
1 parent 100ae74 commit 60033c9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion configure
Expand Up @@ -929,7 +929,16 @@ fi

echo_n "Building as C++11... "
if test "$_use_cxx11" = "yes" ; then
CXXFLAGS="$CXXFLAGS -std=c++11"
case $_host_os in
# newlib-based system include files suppress non-C89 function
# declarations under __STRICT_ANSI__
amigaos* | android | dreamcast | ds | gamecube | mingw* | n64 | psp | ps2 | wii | wince )
_use_cxx11=no
;;
*)
CXXFLAGS="$CXXFLAGS -std=c++11"
;;
esac
fi
echo $_use_cxx11

Expand Down

0 comments on commit 60033c9

Please sign in to comment.