Skip to content

Commit ef2c544

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

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
--- a/Makefile-libbz2_so
22
+++ b/Makefile-libbz2_so
3-
@@ -35,7 +35,7 @@ OBJS= blocksort.o \
3+
@@ -35,8 +35,8 @@ OBJS= blocksort.o \
44
bzlib.o
55

66
all: $(OBJS)
77
- $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.8 $(OBJS)
8+
- $(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.8
89
+ $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 $(LDFLAGS) -o libbz2.so.1.0.8 $(OBJS)
9-
$(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.8
10+
+ $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.8
1011
rm -f libbz2.so.1.0
1112
ln -s libbz2.so.1.0.8 libbz2.so.1.0
13+

0 commit comments

Comments
 (0)