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-graphics/libxsettings-client | |
parent | b3ef7f59e2c7e7ea232b4a22bfaf423cd747c2a7 (diff) | |
download | poky-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-graphics/libxsettings-client')
-rw-r--r-- | meta/recipes-graphics/libxsettings-client/libxsettings-client/disable_Os_option.patch | 17 | ||||
-rw-r--r-- | meta/recipes-graphics/libxsettings-client/libxsettings-client_0.10.bb | 5 |
2 files changed, 20 insertions, 2 deletions
diff --git a/meta/recipes-graphics/libxsettings-client/libxsettings-client/disable_Os_option.patch b/meta/recipes-graphics/libxsettings-client/libxsettings-client/disable_Os_option.patch new file mode 100644 index 0000000000..716f562f67 --- /dev/null +++ b/meta/recipes-graphics/libxsettings-client/libxsettings-client/disable_Os_option.patch | |||
@@ -0,0 +1,17 @@ | |||
1 | Do not set Os optimization in target APP CFLAGS, since it may have potential | ||
2 | error if "--enable-target-optspace" is not set when configuring GCC. | ||
3 | |||
4 | Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> | ||
5 | |||
6 | diff -ruN Xsettings-client-0.10-orig/configure.ac Xsettings-client-0.10/configure.ac | ||
7 | --- Xsettings-client-0.10-orig/configure.ac 2010-09-21 14:01:47.000000000 +0800 | ||
8 | +++ Xsettings-client-0.10/configure.ac 2010-09-21 14:02:01.000000000 +0800 | ||
9 | @@ -3,7 +3,7 @@ | ||
10 | AM_INIT_AUTOMAKE(Xsettings-client, 0.10) | ||
11 | AM_CONFIG_HEADER(config.h) | ||
12 | |||
13 | -CFLAGS="-Os -Wall" | ||
14 | +CFLAGS="-O2 -Wall" | ||
15 | |||
16 | # Checks for programs. | ||
17 | AC_PROG_CC | ||
diff --git a/meta/recipes-graphics/libxsettings-client/libxsettings-client_0.10.bb b/meta/recipes-graphics/libxsettings-client/libxsettings-client_0.10.bb index ecd6d181eb..9cd15a2b7d 100644 --- a/meta/recipes-graphics/libxsettings-client/libxsettings-client_0.10.bb +++ b/meta/recipes-graphics/libxsettings-client/libxsettings-client_0.10.bb | |||
@@ -9,13 +9,14 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=7cfac9d2d4dc3694cc7eb605cf32a69b \ | |||
9 | PRIORITY = "optional" | 9 | PRIORITY = "optional" |
10 | DEPENDS = "virtual/libx11" | 10 | DEPENDS = "virtual/libx11" |
11 | 11 | ||
12 | PR = "r3" | 12 | PR = "r4" |
13 | 13 | ||
14 | headers = "xsettings-common.h xsettings-client.h" | 14 | headers = "xsettings-common.h xsettings-client.h" |
15 | 15 | ||
16 | SRC_URI = "http://projects.o-hand.com/matchbox/sources/optional-dependencies/Xsettings-client-0.10.tar.gz \ | 16 | SRC_URI = "http://projects.o-hand.com/matchbox/sources/optional-dependencies/Xsettings-client-0.10.tar.gz \ |
17 | file://MIT-style-license \ | 17 | file://MIT-style-license \ |
18 | file://link-x11.patch;apply=yes" | 18 | file://link-x11.patch;apply=yes \ |
19 | file://disable_Os_option.patch" | ||
19 | 20 | ||
20 | S = "${WORKDIR}/Xsettings-client-0.10" | 21 | S = "${WORKDIR}/Xsettings-client-0.10" |
21 | 22 | ||