From patchwork Tue Oct 9 20:53:16 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: chkconfig: pass CFLAGS to Makefile Date: Tue, 09 Oct 2012 20:53:16 -0000 From: Joe Slater X-Patchwork-Id: 38035 Message-Id: <1349815996-3767-1-git-send-email-jslater@windriver.com> To: 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] Signed-off-by: Joe Slater --- .../recipes-extended/chkconfig/chkconfig_1.3.58.bb | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb b/meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb index 17987a6..a9cf268 100644 --- a/meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb +++ b/meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb @@ -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