poprouting: Fix build with external toolchains
[feed/routing.git] / poprouting / Makefile
index 640ff43a1d8150b585cfd6359868d78ceac3d497..6bede93212ed07b6abe38b29e0783a39175d6477 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=prince
 PKG_VERSION:=v0.3.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 PKG_USE_MIPS16:=0
@@ -33,6 +33,9 @@ the timer's value are optimized. Finally the timers are pushed back to the routi
 Currently it only supports OLSRd2 (aka OONF).
 endef
 
+CFLAGS += $(TARGET_CFLAGS) $(TARGET_CPPFLAGS)
+LDFLAGS += $(TARGET_LDFLAGS)
+
 define Package/prince/install
        $(INSTALL_DIR) $(1)/usr/lib
        $(INSTALL_DIR) $(1)/usr/sbin