-D_LARGEFILE64_SOURCE is needed for musl explicitly. Its added
indirectly via -D_GNU_SOURCE on glibc but not on musl feature macros

Signed-off-by: Khem Raj <[email protected]>
---
 meta-oe/recipes-devtools/php/php_8.1.11.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-devtools/php/php_8.1.11.bb 
b/meta-oe/recipes-devtools/php/php_8.1.11.bb
index fefabf72d8..dca482a1c8 100644
--- a/meta-oe/recipes-devtools/php/php_8.1.11.bb
+++ b/meta-oe/recipes-devtools/php/php_8.1.11.bb
@@ -120,7 +120,7 @@ PACKAGECONFIG[mbstring] = "--enable-mbstring,,"
 export HOSTCC = "${BUILD_CC}"
 export PHP_NATIVE_DIR = "${STAGING_BINDIR_NATIVE}"
 export PHP_PEAR_PHP_BIN = "${STAGING_BINDIR_NATIVE}/php"
-CFLAGS += " -D_GNU_SOURCE -g -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED 
-I${STAGING_INCDIR}/apache2"
+CFLAGS += " -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -DPTYS_ARE_GETPT 
-DPTYS_ARE_SEARCHED -I${STAGING_INCDIR}/apache2"
 
 # Adding these flags enables dynamic library support, which is disabled by
 # default when cross compiling
-- 
2.39.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#100237): 
https://lists.openembedded.org/g/openembedded-devel/message/100237
Mute This Topic: https://lists.openembedded.org/mt/95883591/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to