diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2010-09-25 10:16:26 +0800 |
---|---|---|
committer | Saul Wold <Saul.Wold@intel.com> | 2010-09-27 08:59:15 -0700 |
commit | ce456306dad3fdf42494830011dacae213c48edf (patch) | |
tree | 0dfca13c02aa1880a5353b21676cc48bd65834b9 /meta/recipes-support/libproxy/libproxy-0.4.3/disable_Os_option.patch | |
parent | b3ef7f59e2c7e7ea232b4a22bfaf423cd747c2a7 (diff) | |
download | openembedded-core-ce456306dad3fdf42494830011dacae213c48edf.tar.gz openembedded-core-ce456306dad3fdf42494830011dacae213c48edf.tar.bz2 openembedded-core-ce456306dad3fdf42494830011dacae213c48edf.tar.xz openembedded-core-ce456306dad3fdf42494830011dacae213c48edf.zip |
gcc: enable poison parameters detection
If not configured with --enable-target-optspace, gcc will report
errors if there is '-Os' optimization in parameters.
This fixes [BUGID #342]
Also add "--enable-target-optspace" option to arm gcc configuration.
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Diffstat (limited to 'meta/recipes-support/libproxy/libproxy-0.4.3/disable_Os_option.patch')
-rw-r--r-- | meta/recipes-support/libproxy/libproxy-0.4.3/disable_Os_option.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/recipes-support/libproxy/libproxy-0.4.3/disable_Os_option.patch b/meta/recipes-support/libproxy/libproxy-0.4.3/disable_Os_option.patch new file mode 100644 index 000000000..cdf6ff6f5 --- /dev/null +++ b/meta/recipes-support/libproxy/libproxy-0.4.3/disable_Os_option.patch @@ -0,0 +1,17 @@ +Do not set Os optimization in target APP CFLAGS, since it may have potential +error if "--enable-target-optspace" is not set when configuring GCC. + +Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> + +diff -ruN libproxy-0.4.3-orig/CMakeLists.txt libproxy-0.4.3/CMakeLists.txt +--- libproxy-0.4.3-orig/CMakeLists.txt 2010-09-21 17:16:06.000000000 +0800 ++++ libproxy-0.4.3/CMakeLists.txt 2010-09-21 17:16:40.000000000 +0800 +@@ -61,7 +61,7 @@ + add_definitions(-D_CRT_SECURE_NO_WARNINGS=1) + else() + add_definitions(-D_POSIX_C_SOURCE=1) +- set(CMAKE_CXX_FLAGS "-g -Wall -Werror -fvisibility=hidden -Os ${CMAKE_CXX_FLAGS}") ++ set(CMAKE_CXX_FLAGS "-g -Wall -Werror -fvisibility=hidden -O2 ${CMAKE_CXX_FLAGS}") + endif() + + ### Subdirectories |