summaryrefslogtreecommitdiffstats
path: root/package/fcgiwrap/0001-use-LIBS-from-configure.patch
diff options
context:
space:
mode:
authorThomas Claveirole <thomas.claveirole@green-communications.fr>2015-05-29 18:15:11 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-07-11 00:25:09 +0200
commit5ba276de2a8f0387304e870995aa6d9a65e33e4a (patch)
tree1bd9e316b5fd4a943f0712ad2b4b097189def2e7 /package/fcgiwrap/0001-use-LIBS-from-configure.patch
parent51c9ee06553a533e1404ee512c998b15f4b73fa2 (diff)
downloadbuildroot-5ba276de2a8f0387304e870995aa6d9a65e33e4a.tar.gz
buildroot-5ba276de2a8f0387304e870995aa6d9a65e33e4a.zip
fcgiwrap: new package
Add package fcgiwrap from https://nginx.localdomain.pl/wiki/FcgiWrap fcgiwrap is a simple server for running CGI applications over FastCGI. It hopes to provide clean CGI support to Nginx (and other web servers that may need it). Signed-off-by: Thomas Claveirole <thomas.claveirole@green-communications.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/fcgiwrap/0001-use-LIBS-from-configure.patch')
-rw-r--r--package/fcgiwrap/0001-use-LIBS-from-configure.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/fcgiwrap/0001-use-LIBS-from-configure.patch b/package/fcgiwrap/0001-use-LIBS-from-configure.patch
new file mode 100644
index 0000000000..12563c4275
--- /dev/null
+++ b/package/fcgiwrap/0001-use-LIBS-from-configure.patch
@@ -0,0 +1,22 @@
+Makefile.in: Use LIBS from configure rather than specifying -lfcgi manually.
+
+libfcgi needs libm and fcgiwrap does not use libtool or pkgconf to
+detect libfcgi, so we need to add -lm explicitely when using static
+libs. Buildroot does this by providing LIBS=-lm to configure when
+needed. However fcgiwrap does not use Automake and its Makefile.in
+ignores LIBS from configure. Fix it with this patch.
+
+Signed-off-by: Thomas Claveirole <thomas.claveirole@green-communications.fr>
+
+diff -ur a/Makefile.in b/Makefile.in
+--- a/Makefile.in 2013-02-03 14:25:17.000000000 +0100
++++ b/Makefile.in 2015-05-29 16:33:23.895280138 +0200
+@@ -16,7 +16,7 @@
+ install -m 644 systemd/fcgiwrap.service $(DESTDIR)@systemdsystemunitdir@
+ endif
+
+-LDLIBS = -lfcgi @systemd_LIBS@
++LDLIBS = @LIBS@ @systemd_LIBS@
+ CFLAGS = @AM_CFLAGS@
+
+ fcgiwrap: fcgiwrap.c
OpenPOWER on IntegriCloud