0001-use-LIBS-from-configure.patch 835 B

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