Skip to contentSkip to conversation

chkconfig: pass CFLAGS to Makefile

PATCH Applied Joe Slater 2 participants 2 messages Oct 10, 2012 – Oct 18, 2012

lore
Share & tools
lore

Joe Slater

author
#0 lore raw

PATCH v2 1/1 chkconfig: pass CFLAGS to Makefile

The environment CFLAGS is not used by the chkconfig Makefile, so debug and optimization options are ignored. So, we use RPM_OPT_FLAGS to pass CFLAGS into Makefile.

Upstream-Status: Inappropriate [configuration]

---
 .../recipes-extended/chkconfig/chkconfig_1.3.58.bb |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb +5 -2
index 17987a6..a27a4ba 100644
@@ -12,7 +12,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=5574c6965ae5f583e55880e397fbb018"
 
 DEPENDS = "libnewt popt"
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "http://fedorahosted.org/releases/c/h/chkconfig/${BPN}-${PV}.tar.bz2"
 
@@ -21,7 +21,10 @@ SRC_URI[sha256sum] = "18b497d25b2cada955c72810e45fcad8280d105f17cf45e2970f182712
 
 inherit autotools gettext
 
-EXTRA_OEMAKE += 'MANDIR="${mandir}" BINDIR="${base_sbindir}" SBINDIR="${sbindir}"'
+# Makefile uses RPM_OPT_fLAGS to construct CFLAGS
+#
+EXTRA_OEMAKE += 'RPM_OPT_FLAGS="${CFLAGS}" MANDIR="${mandir}" \
+                 BINDIR="${base_sbindir}" SBINDIR="${sbindir}"'
 
 do_install_append() {
     mkdir -p ${D}/etc/chkconfig.d
Signature · 1 line
1.7.3.4
Applied
#1 lore raw
Quoted 27 lines · Joe Slater

The environment CFLAGS is not used by the chkconfig Makefile, so debug and optimization options are ignored. So, we use RPM_OPT_FLAGS to pass CFLAGS into Makefile.

Upstream-Status: Inappropriate [configuration]

---
  .../recipes-extended/chkconfig/chkconfig_1.3.58.bb |    7 +++++--
  1 files changed, 5 insertions(+), 2 deletions(-)
meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb +1 -1
index 17987a6..a27a4ba 100644
@@ -12,7 +12,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=5574c6965ae5f583e55880e397fbb018"
 
  DEPENDS = "libnewt popt"
 
-PR = "r1"
+PR = "r2"
 
  SRC_URI = "http://fedorahosted.org/releases/c/h/chkconfig/${BPN}-${PV}.tar.bz2"
 
@@ -21,7 +21,10 @@ SRC_URI[sha256sum] = "18b497d25b2cada955c72810e45fcad8280d105f17cf45e2970f182712
 

meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb SRC_URI[sha256sum] = "18b497d25b2cada955c72810e45fcad8280d105f17cf45e2970f182712 · line 30

Quoted 10 lines
meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb +4 -1
  inherit autotools gettext
 
-EXTRA_OEMAKE += 'MANDIR="${mandir}" BINDIR="${base_sbindir}" SBINDIR="${sbindir}"'
+# Makefile uses RPM_OPT_fLAGS to construct CFLAGS
+#
+EXTRA_OEMAKE += 'RPM_OPT_FLAGS="${CFLAGS}" MANDIR="${mandir}" \
+                 BINDIR="${base_sbindir}" SBINDIR="${sbindir}"'
 
  do_install_append() {
      mkdir -p ${D}/etc/chkconfig.d

Merged into OE-Core

Thanks
Sau!