summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Slater <jslater@windriver.com>2012-10-10 15:16:43 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-18 12:13:41 +0100
commit7087e82079dd8bea7a42dc9683e5998cde97fbeb (patch)
treece797d37d643afb7f3f3bec8f7856e378a2eb029
parentca8edd69993fec472a9cff4d8f2761ce88f712a6 (diff)
downloadpoky-7087e82079dd8bea7a42dc9683e5998cde97fbeb.tar.gz
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>
-rw-r--r--meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb b/meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb
index 9e0e1a05f0..0f6398f57e 100644
--- a/meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb
+++ b/meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb
@@ -12,7 +12,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=5574c6965ae5f583e55880e397fbb018"
12 12
13DEPENDS = "libnewt popt" 13DEPENDS = "libnewt popt"
14 14
15PR = "r2" 15PR = "r3"
16 16
17SRC_URI = "http://fedorahosted.org/releases/c/h/chkconfig/${BPN}-${PV}.tar.bz2" 17SRC_URI = "http://fedorahosted.org/releases/c/h/chkconfig/${BPN}-${PV}.tar.bz2"
18 18
@@ -21,7 +21,10 @@ SRC_URI[sha256sum] = "18b497d25b2cada955c72810e45fcad8280d105f17cf45e2970f182712
21 21
22inherit autotools gettext 22inherit autotools gettext
23 23
24EXTRA_OEMAKE += 'MANDIR="${mandir}" BINDIR="${base_sbindir}" SBINDIR="${sbindir}"' 24# Makefile uses RPM_OPT_fLAGS to construct CFLAGS
25#
26EXTRA_OEMAKE += 'RPM_OPT_FLAGS="${CFLAGS}" MANDIR="${mandir}" \
27 BINDIR="${base_sbindir}" SBINDIR="${sbindir}"'
25 28
26do_install_append() { 29do_install_append() {
27 mkdir -p ${D}${sysconfdir}/chkconfig.d 30 mkdir -p ${D}${sysconfdir}/chkconfig.d