Skip to content

Commit

Permalink
utils/bzip2: fix dynlink
Browse files Browse the repository at this point in the history
  • Loading branch information
The-BB committed Jul 26, 2021
1 parent 44dd343 commit 743d71e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package/utils/bzip2/Makefile
Expand Up @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=bzip2
PKG_VERSION:=1.0.8
PKG_RELEASE:=1
PKG_RELEASE:=1a

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://sourceware.org/pub/bzip2
Expand Down
11 changes: 11 additions & 0 deletions package/utils/bzip2/patches/500-fix-LDFLAGS.patch
@@ -0,0 +1,11 @@
--- a/Makefile-libbz2_so
+++ b/Makefile-libbz2_so
@@ -36,7 +36,7 @@ OBJS= blocksort.o \

all: $(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
ln -s libbz2.so.1.0.8 libbz2.so.1.0

0 comments on commit 743d71e

Please sign in to comment.