Imported Debian patch 20070115-10
[aiccu.git] / debian / patches / 04_kfreebsd.patch
blob9c14122857b160952e3e77a3a10540900a3c3e1a
1 Debian GNU/kFreeBSD needs Linux-like resolver libraries to be linked into
2 the program. Thanks to Axel Beckert <abe@deuxchevaux.org>.
4 Index: aiccu-20070115/unix-console/Makefile
5 ===================================================================
6 --- aiccu-20070115.orig/unix-console/Makefile 2009-10-24 17:26:43.664837919 +0200
7 +++ aiccu-20070115/unix-console/Makefile 2009-10-24 17:27:05.749331932 +0200
8 @@ -68,6 +68,12 @@
9 SRCS += ../common/aiccu_kame.c
10 OBJS += ../common/aiccu_kame.o
11 endif
13 +# GNU/kFreeBSD
14 +ifeq ($(shell uname | grep -c "kFreeBSD"),1)
15 +LDFLAGS += -lpthread -lresolv
16 +endif
18 endif
20 # DragonFlyBSD