miredo: Makefile fixes

* Move CONFIGURE blocks after description
* Fix build with libcap

Signed-off-by: Nikita Vostokov <yawosk@yandex.com>
This commit is contained in:
Nikita Vostokov 2020-03-22 15:48:28 +03:00
parent 7a1e337f39
commit 5db9091a17
1 changed files with 18 additions and 14 deletions

View File

@ -21,20 +21,6 @@ PKG_LICENSE_FILES:=COPYING
include $(INCLUDE_DIR)/package.mk
CONFIGURE_ARGS+= \
--enable-shared \
--enable-static \
--disable-binreloc \
--with-pic \
--without-libiconv-prefix \
--without-libintl-prefix
TARGET_CFLAGS+= $(FPIC) \
-ffunction-sections \
-fdata-sections
TARGET_LDFLAGS += -Wl,--gc-sections
define Package/miredo
SECTION:=net
CATEGORY:=Network
@ -50,6 +36,24 @@ define Package/miredo/description
IPv6 connectivity even from behind NAT devices.
endef
CONFIGURE_ARGS+= \
--enable-shared \
--enable-static \
--disable-binreloc \
--with-pic \
--without-libiconv-prefix \
--without-libintl-prefix
CONFIGURE_VARS += \
ac_cv_header_sys_capability_h=no
TARGET_CFLAGS+= \
$(FPIC) \
-ffunction-sections \
-fdata-sections
TARGET_LDFLAGS += -Wl,--gc-sections
define Package/miredo/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/