From c533c334573278d7c231528b6476628811bdafb4 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 8 Feb 2012 17:12:58 +0000 Subject: [PATCH] From Hartmut Seichter, "attached a revised CMakeLists.txt file for Android that avoids the problems with a ARM gcc bug that appears in the NDK. It only overrides the optimization level for one file. As it resides only in the cfg parser this should not have side effects on performance." --- src/osgPlugins/cfg/CMakeLists.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 ###