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