crelay: Fix link error with BUILD_NLS=y
Signed-off-by: Ted Hess <thess@kitschensync.net>
This commit is contained in:
parent
6ce677caf0
commit
85597bc84d
2 changed files with 13 additions and 0 deletions
|
@ -22,6 +22,7 @@ PKG_LICENSE:=GPL-2.0
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
include $(INCLUDE_DIR)/nls.mk
|
||||||
|
|
||||||
define Package/crelay
|
define Package/crelay
|
||||||
SECTION:=utils
|
SECTION:=utils
|
||||||
|
@ -52,6 +53,7 @@ TARGET_CFLAGS+= \
|
||||||
-I$(STAGING_DIR)/usr/include/libftdi1 \
|
-I$(STAGING_DIR)/usr/include/libftdi1 \
|
||||||
-I$(STAGING_DIR)/usr/include/hidapi
|
-I$(STAGING_DIR)/usr/include/hidapi
|
||||||
|
|
||||||
|
TARGET_LDFLAGS+= $(if $(ICONV_FULL),-liconv)
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR)/src \
|
$(MAKE) -C $(PKG_BUILD_DIR)/src \
|
||||||
|
|
11
utils/crelay/patches/020-link_using_LDFLAGS.patch
Normal file
11
utils/crelay/patches/020-link_using_LDFLAGS.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- a/src/Makefile
|
||||||
|
+++ b/src/Makefile
|
||||||
|
@@ -61,7 +61,7 @@ all: $(BIN)
|
||||||
|
|
||||||
|
$(BIN): $(OBJ)
|
||||||
|
@echo "[Link $(BIN)] with libs $(LIBS)"
|
||||||
|
- @$(CC) -o $(BIN) $(OBJ) $(LIBS)
|
||||||
|
+ @$(CC) -o $(BIN) $(OBJ) $(LDFLAGS) $(LIBS)
|
||||||
|
|
||||||
|
.c.o:
|
||||||
|
@echo "[Compile $<]"
|
Loading…
Reference in a new issue