diff options
author | Fahad Usman <fahad_usman@mentor.com> | 2014-08-26 13:16:48 +0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-27 12:12:06 +0100 |
commit | a46d3646a3e1781be4423b508ea63996b3cfca8a (patch) | |
tree | 76ceb5e864fa41525a35fd07128dab0a889ff320 | |
parent | 97ac0fc33b9277825089ac36f9037d472d397b71 (diff) | |
download | openembedded-core-a46d3646a3e1781be4423b508ea63996b3cfca8a.tar.gz openembedded-core-a46d3646a3e1781be4423b508ea63996b3cfca8a.tar.bz2 openembedded-core-a46d3646a3e1781be4423b508ea63996b3cfca8a.zip |
logrotate: obey our flags
Needed to quiet GNU_HASH warnings, and some minor fixes.
Signed-off-by: Fahad Usman <fahad.usman@gmail.com>
Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-extended/logrotate/logrotate_3.8.7.bb | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/meta/recipes-extended/logrotate/logrotate_3.8.7.bb b/meta/recipes-extended/logrotate/logrotate_3.8.7.bb index 3a6a2287db..42cd764da0 100644 --- a/meta/recipes-extended/logrotate/logrotate_3.8.7.bb +++ b/meta/recipes-extended/logrotate/logrotate_3.8.7.bb @@ -16,7 +16,21 @@ SRC_URI = "https://fedorahosted.org/releases/l/o/logrotate/logrotate-${PV}.tar.g SRC_URI[md5sum] = "99e08503ef24c3e2e3ff74cc5f3be213" SRC_URI[sha256sum] = "f6ba691f40e30e640efa2752c1f9499a3f9738257660994de70a45fe00d12b64" -EXTRA_OEMAKE = "" +# If RPM_OPT_FLAGS is unset, it adds -g itself rather than obeying our +# optimization variables, so use it rather than EXTRA_CFLAGS. +EXTRA_OEMAKE = "\ + LFS= \ + OS_NAME='${OS_NAME}' \ + \ + 'CC=${CC}' \ + 'RPM_OPT_FLAGS=${CFLAGS}' \ + 'EXTRA_LDFLAGS=${LDFLAGS}' \ +" + +# OS_NAME in the makefile defaults to `uname -s`. The behavior for +# freebsd/netbsd is questionable, so leave it as Linux, which only sets +# INSTALL=install and BASEDIR=/usr. +OS_NAME = "Linux" do_compile_prepend() { # Make sure the recompile is OK @@ -24,7 +38,7 @@ do_compile_prepend() { } do_install(){ - oe_runmake install DESTDIR=${D} PREFIX=${D} MANDIR=${mandir} + oe_runmake install DESTDIR=${D} PREFIX=${D} MANDIR=${mandir} BINDIR=${bindir} mkdir -p ${D}${sysconfdir}/logrotate.d mkdir -p ${D}${sysconfdir}/cron.daily mkdir -p ${D}${localstatedir}/lib |