2012年11月30日 星期五

android 編譯失敗 (android 4.0)

1.
build/core/combo/HOST_linux-x86.mk
-HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0 
+HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0

2.
external/oprofile/libpp/format_output.h
-mutable counts_t & counts;
+counts_t & counts;

3.
external/gtest/src/../include/gtest/internal/gtest-param-util.h
+#include <cstddef>

4.
external/llvm/llvm-host-build.mk
+LOCAL_LDLIBS := -lpthread -ldl

5.
frameworks/compile/slang/Android.mk
-local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter -Werror
+local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter

6.
external/mesa3d/src/glsl/linker.cpp
+#include <cstddef>

7.
build/core/definitions.mk
-$(if $(findstring windows,$(HOST_OS)),,-JXms16M -JXmx1536M) \
+$(if $(findstring windows,$(HOST_OS)),,-JXms16M -JXmx2048M) \

參考資料:
http://hcleon.iteye.com/blog/1461352

沒有留言:

張貼留言