[openwrt/openwrt] bzip2: Forward LDFLAGS
LEDE Commits
lede-commits at lists.infradead.org
Tue Nov 18 14:14:42 PST 2025
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/ef2c544f04ebba81f6f41fdfe9ed4ae7249dea4c
commit ef2c544f04ebba81f6f41fdfe9ed4ae7249dea4c
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Sun Nov 16 23:13:44 2025 +0100
bzip2: Forward LDFLAGS
Forward the TARGET_LDFLAGS to the linking process.
Link: https://github.com/openwrt/openwrt/pull/20813
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
package/utils/bzip2/patches/021-fix-LDFLAGS.patch | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/package/utils/bzip2/patches/021-fix-LDFLAGS.patch b/package/utils/bzip2/patches/021-fix-LDFLAGS.patch
index 7929d9a70b..17848d2f10 100644
--- a/package/utils/bzip2/patches/021-fix-LDFLAGS.patch
+++ b/package/utils/bzip2/patches/021-fix-LDFLAGS.patch
@@ -1,11 +1,13 @@
--- a/Makefile-libbz2_so
+++ b/Makefile-libbz2_so
-@@ -35,7 +35,7 @@ OBJS= blocksort.o \
+@@ -35,8 +35,8 @@ OBJS= blocksort.o \
bzlib.o
all: $(OBJS)
- $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.8 $(OBJS)
+- $(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.8
+ $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 $(LDFLAGS) -o libbz2.so.1.0.8 $(OBJS)
- $(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.8
++ $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.8
rm -f libbz2.so.1.0
ln -s libbz2.so.1.0.8 libbz2.so.1.0
+
More information about the lede-commits
mailing list