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.

(From OE-Core rev: 974c8266b30ae114ab331f0ce39fd0fcf4868f1a)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Andre McCurdy 2015-07-15 18:58:07 -07:00 committed by Richard Purdie
parent 26b2db8024
commit 2173c00a5f
1 changed files with 3 additions and 0 deletions

View File

@ -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}
}