Skip to content
Snippets Groups Projects
Commit 30159b38 authored by Florian Fainelli's avatar Florian Fainelli
Browse files

rssileds: Fix build with external toolchains


Pass down TARGET_CPPFLAGS for path to header files, and append the
libraries we depend on in TARGET_LDFLAGS. Put TARGET_LDFLAGS at the end
of the command line as is required by modern GCC/binutils.

Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
parent 4aa1560d
No related branches found
No related tags found
No related merge requests found
......@@ -29,9 +29,11 @@ endef
define Build/Configure
endef
TARGET_LDFLAGS += -liwinfo -luci -lubox -lnl-tiny
define Build/Compile
$(TARGET_CC) $(TARGET_CFLAGS) -Wall -liwinfo \
-o $(PKG_BUILD_DIR)/rssileds $(PKG_BUILD_DIR)/rssileds.c
$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -Wall \
-o $(PKG_BUILD_DIR)/rssileds $(PKG_BUILD_DIR)/rssileds.c $(TARGET_LDFLAGS)
endef
define Package/rssileds/install
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment