Package: libhdhomerun
Version: 20110801-2
Severity: important
Tags: patch
User: debian-h...@lists.debian.org
Usertags: hurd

Hi,

currently[1], libhdhomerun does not compile on hurd-i386.
The problem is that clock_gettime is used without linking to the rt library.

The attached patch fixes the issue.

[1] 
https://buildd.debian.org/status/fetch.php?pkg=libhdhomerun&arch=hurd-i386&ver=20110801-2&stamp=1312341483

Thanks,
-- 
Pino
Author: Pino Toscano <p...@debian.org>
Forwarded: no
Last-Update: 2011-08-03
Description: Fix FTBFS on hurd

--- a/Makefile
+++ b/Makefile
@@ -29,7 +29,7 @@
   LIBEXT := .so.$(LIBVERSION)
   SOEXT := .so.$(SONAME)
   SHARED := -shared -Wl,-soname,libhdhomerun$(SOEXT)
-  ifneq (,$(filter $(OS),Linux GNU/kFreeBSD))
+  ifneq (,$(filter $(OS),Linux GNU/kFreeBSD GNU))
     LDFLAGS += -lrt
   endif
   ifeq ($(OS),SunOS)
@@ -50,7 +50,7 @@
 
 libhdhomerun$(LIBEXT) : $(LIBSRCS)
 	$(CC) $(CFLAGS) -fPIC -DDLL_EXPORT $(SHARED) $+ $(LDFLAGS) -o $@
-  	ifneq (,$(filter $(OS),Linux SunOS GNU/kFreeBSD))
+  	ifneq (,$(filter $(OS),Linux SunOS GNU/kFreeBSD GNU))
 		ln -s $@ libhdhomerun.so
   	endif
 

Reply via email to