|
|
@ -66,12 +66,18 @@ if test "x$GCC" = "xyes"; then |
|
|
|
# Make sure we don't link to libstdc++ |
|
|
|
# Make sure we don't link to libstdc++ |
|
|
|
CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions" |
|
|
|
CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions" |
|
|
|
|
|
|
|
|
|
|
|
# Hide inline methods |
|
|
|
|
|
|
|
CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Assorted warnings |
|
|
|
# Assorted warnings |
|
|
|
CXXFLAGS="$CXXFLAGS -Wcast-align" |
|
|
|
CXXFLAGS="$CXXFLAGS -Wcast-align" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case "$host" in |
|
|
|
|
|
|
|
*-mingw*) |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
*) |
|
|
|
|
|
|
|
# Hide inline methods |
|
|
|
|
|
|
|
CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
esac |
|
|
|
|
|
|
|
|
|
|
|
case "$host" in |
|
|
|
case "$host" in |
|
|
|
arm-*-*) |
|
|
|
arm-*-*) |
|
|
|
# Request byte alignment on arm |
|
|
|
# Request byte alignment on arm |
|
|
|