mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-08 02:09:48 +03:00
package/libmicrohttpd: defining _REENTRANT on ARC is no longer needed
The ARC gcc compiler now defines _REENTRANT when -pthread is passed. This issue was fixed upstream in gcc commit de4c7f60f2891193bf3f5da823b17fa0d7fd4830, which is part of gcc 7.x. Therefore, both the gcc 7.x and 8.x versions, which can be selected for the ARC architecture, are fixed, making the libmicrohttpd work around useless. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
@@ -11,13 +11,6 @@ LIBMICROHTTPD_INSTALL_STAGING = YES
|
||||
LIBMICROHTTPD_CONF_OPTS = --disable-curl --disable-examples
|
||||
LIBMICROHTTPD_CFLAGS = $(TARGET_CFLAGS) -std=c99
|
||||
|
||||
# gcc on arc doesn't define _REENTRANT when -pthread is passed while
|
||||
# it should. Compensate this deficiency here otherwise libmicrohttpd
|
||||
# configure script doesn't find that thread support is enabled.
|
||||
ifeq ($(BR2_arc),y)
|
||||
LIBMICROHTTPD_CFLAGS += -D_REENTRANT
|
||||
endif
|
||||
|
||||
LIBMICROHTTPD_CONF_ENV += CFLAGS="$(LIBMICROHTTPD_CFLAGS)"
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBMICROHTTPD_SSL),y)
|
||||
|
||||
Reference in New Issue
Block a user