[oe-commits] Andre McCurdy : libcap: avoid losing default Large File Support CFLAGS

git at git.openembedded.org git at git.openembedded.org
Mon Jul 20 09:41:45 UTC 2015


Module: openembedded-core.git
Branch: master
Commit: 974c8266b30ae114ab331f0ce39fd0fcf4868f1a
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=974c8266b30ae114ab331f0ce39fd0fcf4868f1a

Author: Andre McCurdy <armccurdy at gmail.com>
Date:   Wed Jul 15 18:58:07 2015 -0700

libcap: avoid losing default Large File Support CFLAGS

-D_LARGEFILE64_SOURCE and -D_FILE_OFFSET_BITS=64 are present in the
default libcap CFLAGS. Add them to the OE CFLAGS too, so that they
are still in effect when the OE CFLAGS over-ride the defaults.

Signed-off-by: Andre McCurdy <armccurdy at gmail.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>

---

 meta/recipes-support/libcap/libcap_2.24.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-support/libcap/libcap_2.24.bb b/meta/recipes-support/libcap/libcap_2.24.bb
index e8ae7ce..161bb70 100644
--- a/meta/recipes-support/libcap/libcap_2.24.bb
+++ b/meta/recipes-support/libcap/libcap_2.24.bb
@@ -41,6 +41,9 @@ EXTRA_OEMAKE = " \
 
 EXTRA_OEMAKE_append_class-target = " SYSTEM_HEADERS=${STAGING_INCDIR}"
 
+# these are present in the libcap defaults, so include in our CFLAGS too
+CFLAGS += "-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
+
 do_compile() {
 	oe_runmake ${EXTRA_OECONF}
 }



More information about the Openembedded-commits mailing list