[oe-commits] Joe Slater : mingetty: replace cflags hard-coded into Makefile

git at git.openembedded.org git at git.openembedded.org
Sat Nov 24 15:15:02 UTC 2012


Module: openembedded-core.git
Branch: master-next
Commit: 2e123bb1b3ee023a020798972821f32b1e0054e6
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=2e123bb1b3ee023a020798972821f32b1e0054e6

Author: Joe Slater <jslater at windriver.com>
Date:   Thu Nov 15 09:59:12 2012 -0800

mingetty: replace cflags hard-coded into Makefile

Add CFLAGS to EXTRA_OEMAKE to allow us control over
debugging and optimization.

Signed-off-by: Joe Slater <jslater at windriver.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>

---

 meta/recipes-extended/mingetty/mingetty_1.08.bb |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-extended/mingetty/mingetty_1.08.bb b/meta/recipes-extended/mingetty/mingetty_1.08.bb
index 235a3be..6c53957 100644
--- a/meta/recipes-extended/mingetty/mingetty_1.08.bb
+++ b/meta/recipes-extended/mingetty/mingetty_1.08.bb
@@ -2,7 +2,7 @@ DESCRIPTION = " A compact getty program for virtual consoles only"
 SECTION = "console/utils"
 HOMEPAGE = "http://sourceforge.net/projects/mingetty/"
 LICENSE = "GPLv2"
-PR = "r2"
+PR = "r3"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=0c56db0143f4f80c369ee3af7425af6e"
 SRC_URI = "http://cdnetworks-kr-1.dl.sourceforge.net/project/mingetty/mingetty/${PV}/mingetty-${PV}.tar.gz"
@@ -10,7 +10,10 @@ SRC_URI = "http://cdnetworks-kr-1.dl.sourceforge.net/project/mingetty/mingetty/$
 SRC_URI[md5sum] = "2a75ad6487ff271424ffc00a64420990"
 SRC_URI[sha256sum] = "0f55c90ba4faa913d91ef99cbf5cb2eb4dbe2780314c3bb17953f849c8cddd17"
 
-EXTRA_OEMAKE = "CC='${CC}'"
+# substitute our CFLAGS for "-O2 -Wall -W -pipe"
+#
+EXTRA_OEMAKE = "CC='${CC}' \
+                CFLAGS='${CFLAGS} -D_GNU_SOURCE'"
 
 do_install(){
     install -d ${D}${mandir}/man8 ${D}/${base_sbindir}





More information about the Openembedded-commits mailing list