diff mbox series

[oe,meta-oe] safec: Define _GNU_SOURCE

Message ID 20190911065508.579805-1-raj.khem@gmail.com
State New
Headers show
Series [oe,meta-oe] safec: Define _GNU_SOURCE | expand

Commit Message

Khem Raj Sept. 11, 2019, 6:55 a.m. UTC
musl does not define this variable automatically but safec does provide
wrapper for some GNU extentions as well e.g.

error: implicit declaration of function 'localtime_r' is invalid in C99

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 meta-oe/recipes-core/safec/safec_3.4.bb | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.23.0

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
diff mbox series

Patch

diff --git a/meta-oe/recipes-core/safec/safec_3.4.bb b/meta-oe/recipes-core/safec/safec_3.4.bb
index b4c125faf4..cc1fbcb735 100644
--- a/meta-oe/recipes-core/safec/safec_3.4.bb
+++ b/meta-oe/recipes-core/safec/safec_3.4.bb
@@ -10,6 +10,8 @@  S = "${WORKDIR}/git"
 SRCREV = "62e6b2df55084316d027165d286e46beb40513dc"
 SRC_URI = "git://github.com/rurban/safeclib.git"
 
+CPPFLAGS_append_libc-musl = " -D_GNU_SOURCE"
+
 COMPATIBLE_HOST = '(x86_64|i.86|powerpc|powerpc64|arm).*-linux'
 
 RDEPENDS_${PN} = "perl"