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 <sebastian_ml@gmx.net>
This commit is contained in:
Sebastian Kemper 2018-02-03 14:27:40 +01:00
parent f52d5ff3f8
commit a49531f22e

View file

@ -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