diff --git a/src/osgPlugins/cfg/CMakeLists.txt b/src/osgPlugins/cfg/CMakeLists.txt index d7c0febb1..070f4d005 100644 --- a/src/osgPlugins/cfg/CMakeLists.txt +++ b/src/osgPlugins/cfg/CMakeLists.txt @@ -16,6 +16,20 @@ SET(TARGET_H VisualChooser.h ) +# +# Android NDK r6, r6b and r7 ship with a broken gcc (armeabi) +# see also +# - http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40836 +# - http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37987 +# +if (ANDROID) + set_source_files_properties(ConfigParser.cpp + PROPERTY + COMPILE_FLAGS + "-O0") +endif() +# + SET(TARGET_ADDED_LIBRARIES osgViewer) #### end var setup ###