git » libjio » commit f7620ac

Link the shared library against pthread

author Alberto Bertogli
2009-03-18 04:36:26 UTC
committer Alberto Bertogli
2009-03-18 04:36:26 UTC
parent 583b8987398374738a620a0bffe5cbf94def26f4

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 +1 -1

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)