Skip to content

Commit 51ab518

Browse files
committed
zyxel-bootconfig: Forward LDFLAGS
Forward the TARGET_LDFLAGS to the linking process. Link: openwrt/openwrt#20813 Signed-off-by: Hauke Mehrtens <[email protected]>
1 parent ef2c544 commit 51ab518

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package/utils/zyxel-bootconfig/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ endef
2626
define Build/Compile
2727
$(MAKE) -C $(PKG_BUILD_DIR) \
2828
CC="$(TARGET_CC)" \
29-
CFLAGS="$(TARGET_CFLAGS) -Wall"
29+
CFLAGS="$(TARGET_CFLAGS) -Wall" \
30+
LDFLAGS="$(TARGET_LDFLAGS)"
3031
endef
3132

3233
define Package/zyxel-bootconfig/install
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
all: zyxel-bootconfig
22

33
zyxel-bootconfig:
4-
$(CC) $(CFLAGS) -Wall zyxel-bootconfig.c -o zyxel-bootconfig
4+
$(CC) $(CFLAGS) $(LDFLAGS) -Wall zyxel-bootconfig.c -o zyxel-bootconfig
55

66
clean:
77
rm -f zyxel-bootconfig

0 commit comments

Comments
 (0)