Description: Fix FTBFS from missing -lpthread in libfreeradius
Author: Michael Vogt <michael.vogt@ubuntu.com>
Forwarded: no
Last-Update: 2013-07-09

--- freeradius-2.1.12+dfsg.orig/src/lib/Makefile
+++ freeradius-2.1.12+dfsg/src/lib/Makefile
@@ -20,6 +20,8 @@ INCLUDES	= ../include/radius.h ../includ
 
 CFLAGS		+= -D_LIBRADIUS -I$(top_builddir)/src
 
+LIBS = -lpthread
+
 # if you have problems with things that need SHA1-HMAC, this will
 # dump the key and the input to the hash so you can compare to what
 # the other end is doing.
@@ -42,7 +44,7 @@ all: $(TARGET).la
 
 $(TARGET).la: $(LT_OBJS)
 	$(LIBTOOL) --mode=link $(CC) -release $(RADIUSD_VERSION) \
-	$(LDFLAGS) $(LINK_MODE) -o $@ -rpath $(libdir) $^
+	$(LDFLAGS) $(LINK_MODE) -o $@ -rpath $(libdir) $^ $(LIBS)
 
 $(LT_OBJS): $(INCLUDES)
 
