From a49531f22e130893aaf3bc5fbaad9815ce1accfe Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sat, 3 Feb 2018 14:27:40 +0100 Subject: [PATCH] yate: clean up FLAGS - remove flags to don't have a reason for being there anymore (there is no comment on why they're needed). - add CPPFLAGS to CFLAGS so the compiler can use the FORTIFY_SOURCE headers. Signed-off-by: Sebastian Kemper --- net/yate/Makefile | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/net/yate/Makefile b/net/yate/Makefile index c46f88d..607384e 100644 --- a/net/yate/Makefile +++ b/net/yate/Makefile @@ -82,13 +82,8 @@ define Package/$(PKG_NAME)-collection-basic TITLE := Basic Yate Server endef -ifneq ($(CONFIG_USE_MUSL),) - LIBNSL:= -else - LIBNSL:=-lnsl -endif - -TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include $(if $(CONFIG_BIG_ENDIAN),-DBIGENDIAN,) +# Otherwise yate ignores CPPFLAGS +TARGET_CFLAGS += $(TARGET_CPPFLAGS) CONFIGURE_ARGS+= \ --enable-strings \ @@ -125,10 +120,6 @@ CONFIGURE_ARGS+= \ --without-doxygen \ --without-kdoc -CONFIGURE_VARS+= \ - LDFLAGS="$$$$LDFLAGS -nodefaultlibs" \ - LIBS="-lc -luClibc++ -lpthread -lresolv -ldl -lm -lc $(LIBGCC_S) $(LIBNSL)" - define Package/$(PKG_NAME)/install $(INSTALL_DIR) $(1)/usr/lib