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]

(From OE-Core rev: ecdb24c21b7b90b83748cbe5891437b2183321d7)

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Joe Slater 2012-10-10 15:16:43 -07:00 committed by Richard Purdie
parent ca8edd6999
commit 7087e82079
1 changed files with 5 additions and 2 deletions

View File

@ -12,7 +12,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=5574c6965ae5f583e55880e397fbb018"
DEPENDS = "libnewt popt"
PR = "r2"
PR = "r3"
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}${sysconfdir}/chkconfig.d