PKG_LICENSE:=GPL-3.0-or-later
PKG_LICENSE_FILES:=COPYING
-PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
PKG_BUILD_DEPENDS:=protobuf/host
-PKG_USE_MIPS16:=0
include $(INCLUDE_DIR)/package.mk
--disable-hardening \
--without-utempter
+CONFIGURE_VARS += \
+ ac_cv_have_decl_ffs=yes
+
TARGET_CXXFLAGS += -ffunction-sections -fdata-sections -flto -std=c++11
TARGET_LDFLAGS += -Wl,--gc-sections -lncurses
+++ /dev/null
---- a/configure.ac
-+++ b/configure.ac
-@@ -425,7 +425,8 @@ AC_CHECK_DECL([mach_absolute_time],
- AC_CHECK_DECLS([__builtin_ctz])
-
- AC_CHECK_DECLS([ffs], [], [],
-- [[#include <strings.h>]])
-+ [[#define _GNU_SOURCE
-+#include <strings.h>]])
-
- AC_CHECK_DECLS([be64toh, betoh64, bswap64, __builtin_bswap64], [], [],
- [[#if defined(HAVE_ENDIAN_H)