1Makefile.in: Use LIBS from configure rather than specifying -lfcgi manually. 2 3libfcgi needs libm and fcgiwrap does not use libtool or pkgconf to 4detect libfcgi, so we need to add -lm explicitely when using static 5libs. Buildroot does this by providing LIBS=-lm to configure when 6needed. However fcgiwrap does not use Automake and its Makefile.in 7ignores LIBS from configure. Fix it with this patch. 8 9Signed-off-by: Thomas Claveirole <thomas.claveirole@green-communications.fr> 10 11diff -ur a/Makefile.in b/Makefile.in 12--- a/Makefile.in 2013-02-03 14:25:17.000000000 +0100 13+++ b/Makefile.in 2015-05-29 16:33:23.895280138 +0200 14@@ -16,7 +16,7 @@ 15 install -m 644 systemd/fcgiwrap.service $(DESTDIR)@systemdsystemunitdir@ 16 endif 17 18-LDLIBS = -lfcgi @systemd_LIBS@ 19+LDLIBS = @LIBS@ @systemd_LIBS@ 20 CFLAGS = @AM_CFLAGS@ 21 22 fcgiwrap: fcgiwrap.c 23