[oe-commits] Khem Raj : ncurses: Add -fforward-propagate on arm.

git version control git at git.openembedded.org
Sat Jun 5 13:53:40 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: be8c14f9c3f31bb56ef442156a04465d2efd2270
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=be8c14f9c3f31bb56ef442156a04465d2efd2270

Author: Khem Raj <raj.khem at gmail.com>
Date:   Wed Jun  2 13:03:21 2010 -0700

ncurses: Add -fforward-propagate on arm.

* Needed on -O1 compile. Generally we use -Os where
  this option is already enabled. But we enable is anyway
  so it gets picked at -O1 too which we use with DEBUG builds.

Signed-off-by: Khem Raj <raj.khem at gmail.com>
Acked-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 recipes/ncurses/ncurses.inc    |   11 ++++++-----
 recipes/ncurses/ncurses_5.4.bb |    2 +-
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/recipes/ncurses/ncurses.inc b/recipes/ncurses/ncurses.inc
index bfecfff..337d670 100644
--- a/recipes/ncurses/ncurses.inc
+++ b/recipes/ncurses/ncurses.inc
@@ -30,6 +30,12 @@ export BUILD_CCFLAGS = "-I${S}/ncurses -I${S}/include ${BUILD_CFLAGS}"
 export BUILD_LDFLAGS = ""
 export EXTRA_OEMAKE = '"BUILD_LDFLAGS=" "BUILD_CCFLAGS=${BUILD_CCFLAGS}"'
 
+# Below option is added to overcome the GCC bug on ARM
+# see http://gcc.gnu.org/PR42981 for further details.
+# We could potentially take it off when its fixed in gcc 4.5
+
+CFLAGS_append_arm = " -fforward-propagate "
+
 # This is necessary so that the "tic" command executed during the install can
 # link with the correct libary in staging.
 export LD_LIBRARY_PATH = "${STAGING_LIBDIR_NATIVE}"
@@ -70,16 +76,12 @@ do_install() {
 		mv ${D}${bindir}/reset ${D}${bindir}/reset.${PN}
 	fi
 }
-		
-		
 pkg_postinst_ncurses-tools () {
 	if [ "${PN}" = "ncurses" ]; then
 		update-alternatives --install ${bindir}/clear clear clear.${PN} 100
 		update-alternatives --install ${bindir}/reset reset reset.${PN} 100
 	fi
 }
-				
-			
 pkg_prerm_ncurses-tools () {
 	if [ "${PN}" = "ncurses" ]; then
 		update-alternatives --remove clear clear.${PN}
@@ -110,7 +112,6 @@ FILES_${PN}-tools = "\
 FILES_${PN}-terminfo = "\
   ${datadir}/terminfo \
 "
-  
 RSUGGESTS_${PN} = "ncurses-terminfo"
 RPROVIDES_${PN} = "libncurses5"
 RCONFLICTS_${PN} = "libncurses5"
diff --git a/recipes/ncurses/ncurses_5.4.bb b/recipes/ncurses/ncurses_5.4.bb
index a6aed6d..8c0f62c 100644
--- a/recipes/ncurses/ncurses_5.4.bb
+++ b/recipes/ncurses/ncurses_5.4.bb
@@ -1,4 +1,4 @@
-PR = "r19"
+PR = "r20"
 
 SRC_URI = "${GNU_MIRROR}/ncurses/ncurses-${PV}.tar.gz \
            file://makefile_tweak.patch \





More information about the Openembedded-commits mailing list