summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-06-11 04:58:42 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-06-11 04:58:42 (EDT)
commit57671fa175d4c857bbd8dec814879ee324be4f16 (patch)
tree3909afad4624e8c89a38ae10eaa8be186662c849
parent200a1d67237bf9e46794d2d755d8c581a4311f9d (diff)
Fix linking of bzip2 against libbz2.so.
-rw-r--r--patches/01_properly-support-shared-library.patch3
1 files changed, 2 insertions, 1 deletions
diff --git a/patches/01_properly-support-shared-library.patch b/patches/01_properly-support-shared-library.patch
index 6bd71db..f7ec802 100644
--- a/patches/01_properly-support-shared-library.patch
+++ b/patches/01_properly-support-shared-library.patch
@@ -23,7 +23,8 @@ diff -Naur src.orig/Makefile src/Makefile
-bzip2: libbz2.a bzip2.o
+bzip2: libbz2.so.$(VERSION) bzip2.o
- $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2 bzip2.o -L. -lbz2
+- $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2 bzip2.o -L. -lbz2
++ $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2 bzip2.o libbz2.so.$(VERSION)
bzip2recover: bzip2recover.o
$(CC) $(CFLAGS) $(LDFLAGS) -o bzip2recover bzip2recover.o