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