From 57671fa175d4c857bbd8dec814879ee324be4f16 Mon Sep 17 00:00:00 2001
From: P. J. McDermott <pj@pehjota.net>
Date: Wed, 11 Jun 2014 04:58:42 -0400
Subject: Fix linking of bzip2 against libbz2.so.

---
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
--
cgit v0.9.1