From ce456306dad3fdf42494830011dacae213c48edf Mon Sep 17 00:00:00 2001 From: Dongxiao Xu Date: Sat, 25 Sep 2010 10:16:26 +0800 Subject: 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 --- .../libxsettings-client/disable_Os_option.patch | 17 +++++++++++++++++ .../libxsettings-client/libxsettings-client_0.10.bb | 5 +++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-graphics/libxsettings-client/libxsettings-client/disable_Os_option.patch (limited to 'meta/recipes-graphics/libxsettings-client') 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 @@ +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 + +diff -ruN Xsettings-client-0.10-orig/configure.ac Xsettings-client-0.10/configure.ac +--- Xsettings-client-0.10-orig/configure.ac 2010-09-21 14:01:47.000000000 +0800 ++++ Xsettings-client-0.10/configure.ac 2010-09-21 14:02:01.000000000 +0800 +@@ -3,7 +3,7 @@ + AM_INIT_AUTOMAKE(Xsettings-client, 0.10) + AM_CONFIG_HEADER(config.h) + +-CFLAGS="-Os -Wall" ++CFLAGS="-O2 -Wall" + + # Checks for programs. + 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 \ PRIORITY = "optional" DEPENDS = "virtual/libx11" -PR = "r3" +PR = "r4" headers = "xsettings-common.h xsettings-client.h" SRC_URI = "http://projects.o-hand.com/matchbox/sources/optional-dependencies/Xsettings-client-0.10.tar.gz \ file://MIT-style-license \ - file://link-x11.patch;apply=yes" + file://link-x11.patch;apply=yes \ + file://disable_Os_option.patch" S = "${WORKDIR}/Xsettings-client-0.10" -- cgit 1.2.3-korg