1 Makefile.in: Use LIBS from configure rather than specifying -lfcgi manually.
3 libfcgi needs libm and fcgiwrap does not use libtool or pkgconf to
4 detect libfcgi, so we need to add -lm explicitely when using static
5 libs. Buildroot does this by providing LIBS=-lm to configure when
6 needed. However fcgiwrap does not use Automake and its Makefile.in
7 ignores LIBS from configure. Fix it with this patch.
9 Signed-off-by: Thomas Claveirole <thomas.claveirole@green-communications.fr>
11 diff -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
15 install -m 644 systemd/fcgiwrap.service $(DESTDIR)@systemdsystemunitdir@
18 -LDLIBS = -lfcgi @systemd_LIBS@
19 +LDLIBS = @LIBS@ @systemd_LIBS@