[oe,meta-oe,15/18] libmicrohttpd: Add -D_REENTRANT to CFLAGS

Message ID 20180319060300.5366-15-raj.khem@gmail.com
State New
Headers show
Series
  • [oe,meta-oe,01/18] obexftp: use makefile instead of ninja cmake generator
Related show

Commit Message

Khem Raj March 19, 2018, 6:02 a.m.
GCC fails to add it with -pthread on some arches e.g. risc-v

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

---
 meta-oe/recipes-support/libmicrohttpd/libmicrohttpd_0.9.55.bb | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.16.2

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

Patch

diff --git a/meta-oe/recipes-support/libmicrohttpd/libmicrohttpd_0.9.55.bb b/meta-oe/recipes-support/libmicrohttpd/libmicrohttpd_0.9.55.bb
index ee399a764..0930a277b 100644
--- a/meta-oe/recipes-support/libmicrohttpd/libmicrohttpd_0.9.55.bb
+++ b/meta-oe/recipes-support/libmicrohttpd/libmicrohttpd_0.9.55.bb
@@ -11,6 +11,8 @@  SRC_URI[sha256sum] = "0c1cab8dc9f2588bd3076a28f77a7f8de9560cbf2d80e53f9a8696ada8
 
 inherit autotools lib_package pkgconfig gettext
 
+CFLAGS += "-pthread -D_REENTRANT"
+
 EXTRA_OECONF += "--disable-static --with-gnutls=${STAGING_LIBDIR}/../"
 
 PACKAGECONFIG ?= "curl"