mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2025-12-10 08:44:39 +01:00
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@hauke-m.de>
This commit is contained in:
parent
2fc6a143a7
commit
ef2c544f04
1 changed files with 4 additions and 2 deletions
|
|
@ -1,11 +1,13 @@
|
||||||
--- a/Makefile-libbz2_so
|
--- a/Makefile-libbz2_so
|
||||||
+++ b/Makefile-libbz2_so
|
+++ b/Makefile-libbz2_so
|
||||||
@@ -35,7 +35,7 @@ OBJS= blocksort.o \
|
@@ -35,8 +35,8 @@ OBJS= blocksort.o \
|
||||||
bzlib.o
|
bzlib.o
|
||||||
|
|
||||||
all: $(OBJS)
|
all: $(OBJS)
|
||||||
- $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.8 $(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) -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
|
rm -f libbz2.so.1.0
|
||||||
ln -s libbz2.so.1.0.8 libbz2.so.1.0
|
ln -s libbz2.so.1.0.8 libbz2.so.1.0
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue