Browse Source

crelay: Fix link error with BUILD_NLS=y

Signed-off-by: Ted Hess <thess@kitschensync.net>
lilik-openwrt-22.03
Ted Hess 9 years ago
parent
commit
85597bc84d
2 changed files with 13 additions and 0 deletions
  1. +2
    -0
      utils/crelay/Makefile
  2. +11
    -0
      utils/crelay/patches/020-link_using_LDFLAGS.patch

+ 2
- 0
utils/crelay/Makefile View File

@ -22,6 +22,7 @@ PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=LICENSE
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
define Package/crelay
SECTION:=utils
@ -52,6 +53,7 @@ TARGET_CFLAGS+= \
-I$(STAGING_DIR)/usr/include/libftdi1 \
-I$(STAGING_DIR)/usr/include/hidapi
TARGET_LDFLAGS+= $(if $(ICONV_FULL),-liconv)
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)/src \


+ 11
- 0
utils/crelay/patches/020-link_using_LDFLAGS.patch View 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…
Cancel
Save