From f7620acdac624642f286d3c37bad6f85bcf97f87 Mon Sep 17 00:00:00 2001
From: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Wed, 18 Mar 2009 01:36:26 -0300
Subject: [PATCH 05/32] Link the shared library against pthread

Otherwise, we're forcing the user to link against it even if it doesn't
use it, which seems misleading.

Thanks to Chris Riddoch for the bug report.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 6bad0ab..fa64b5f 100644
--- a/Makefile
+++ b/Makefile
@@ -42,7 +42,7 @@ default: all
 all: libjio.so libjio.a libjio.pc jiofsck
 
 libjio.so: $(OBJS)
-	$(NICE_CC) -shared $(ALL_CFLAGS) $(OBJS) -o libjio.so
+	$(NICE_CC) -shared $(ALL_CFLAGS) $(OBJS) -lpthread -o libjio.so
 
 libjio.a: $(OBJS)
 	$(NICE_AR) cr libjio.a $(OBJS)
-- 
1.6.2.rc0.226.gf08f


