summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2010-09-25 10:16:26 +0800
committerSaul Wold <Saul.Wold@intel.com>2010-09-27 08:59:15 -0700
commitce456306dad3fdf42494830011dacae213c48edf (patch)
tree0dfca13c02aa1880a5353b21676cc48bd65834b9 /meta/recipes-support
parentb3ef7f59e2c7e7ea232b4a22bfaf423cd747c2a7 (diff)
downloadpoky-ce456306dad3fdf42494830011dacae213c48edf.tar.gz
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')
-rw-r--r--meta/recipes-support/libproxy/libproxy-0.4.3/disable_Os_option.patch17
-rw-r--r--meta/recipes-support/libproxy/libproxy_0.4.3.bb7
2 files changed, 21 insertions, 3 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 0000000000..cdf6ff6f52
--- /dev/null
+++ b/meta/recipes-support/libproxy/libproxy-0.4.3/disable_Os_option.patch
@@ -0,0 +1,17 @@
1Do not set Os optimization in target APP CFLAGS, since it may have potential
2error if "--enable-target-optspace" is not set when configuring GCC.
3
4Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
5
6diff -ruN libproxy-0.4.3-orig/CMakeLists.txt libproxy-0.4.3/CMakeLists.txt
7--- libproxy-0.4.3-orig/CMakeLists.txt 2010-09-21 17:16:06.000000000 +0800
8+++ libproxy-0.4.3/CMakeLists.txt 2010-09-21 17:16:40.000000000 +0800
9@@ -61,7 +61,7 @@
10 add_definitions(-D_CRT_SECURE_NO_WARNINGS=1)
11 else()
12 add_definitions(-D_POSIX_C_SOURCE=1)
13- set(CMAKE_CXX_FLAGS "-g -Wall -Werror -fvisibility=hidden -Os ${CMAKE_CXX_FLAGS}")
14+ set(CMAKE_CXX_FLAGS "-g -Wall -Werror -fvisibility=hidden -O2 ${CMAKE_CXX_FLAGS}")
15 endif()
16
17 ### Subdirectories
diff --git a/meta/recipes-support/libproxy/libproxy_0.4.3.bb b/meta/recipes-support/libproxy/libproxy_0.4.3.bb
index 6c0b7a50c6..ffa06f636a 100644
--- a/meta/recipes-support/libproxy/libproxy_0.4.3.bb
+++ b/meta/recipes-support/libproxy/libproxy_0.4.3.bb
@@ -9,16 +9,17 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=7d7044444a7b1b116e8783edcdb44ff4 \
9 9
10DEPENDS = "virtual/libx11 xmu gconf-dbus" 10DEPENDS = "virtual/libx11 xmu gconf-dbus"
11 11
12SRC_URI = "http://libproxy.googlecode.com/files/libproxy-${PV}.tar.gz" 12SRC_URI = "http://libproxy.googlecode.com/files/libproxy-${PV}.tar.gz \
13 file://disable_Os_option.patch"
13 14
14PR = "r1" 15PR = "r2"
15 16
16inherit cmake pkgconfig 17inherit cmake pkgconfig
17 18
18EXTRA_OECMAKE = "-DWITH_WEBKIT=no -DWITH_GNOME=yes -DWITH_KDE4=no \ 19EXTRA_OECMAKE = "-DWITH_WEBKIT=no -DWITH_GNOME=yes -DWITH_KDE4=no \
19 -DWITH_PYTHON=no -DWITH_PERL=no -DWITH_MOZJS=no -DWITH_NM=no" 20 -DWITH_PYTHON=no -DWITH_PERL=no -DWITH_MOZJS=no -DWITH_NM=no"
20 21
21FILES_${PN}-dbg += "${libdir}/libproxy/0.4.2/plugins/" 22FILES_${PN}-dbg += "${libdir}/libproxy/${PV}/plugins/"
22 23
23do_configure_prepend() { 24do_configure_prepend() {
24 export HOST_SYS=${HOST_SYS} 25 export HOST_SYS=${HOST_SYS}