buildrootschalter/package/libfcgi/libfcgi-0000-eof.patch
Yann E. MORIN 6364139385 package/libfcgi: do not build examples
Examples do not compile for a static build, because libtool forcibly
wants to link against the shared version of libstdc++.so, instead of the
static version.

Since we do not really need the examples on the target, just disable
them, it is easier than fixing libtool.

Also, while we're at it, rename the patches to include a sequence
number.

Fixes:
    http://autobuild.buildroot.org/results/66e/66e19cfd5a6048d2aaa46365518ea875e0abcb4d/
    http://autobuild.buildroot.org/results/71d/71d9ba50b41efa05a3aff06c24412d5e8b81d8f1/

[Thomas: edit commit log to indicate that the patches are renamed to
include a sequence number.]

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2014-07-19 17:14:58 +02:00

25 lines
624 B
Diff

[PATCH] fix build with C++ support and gcc >= 4.4
EOF is defined in stdio, so ensure it is included.
Based on similar patch by Markus Rothe:
http://comments.gmane.org/gmane.comp.web.fastcgi.devel/3205
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
libfcgi/fcgio.cpp | 1 +
1 file changed, 1 insertion(+)
Index: fcgi-2.4.0/libfcgi/fcgio.cpp
===================================================================
--- fcgi-2.4.0.orig/libfcgi/fcgio.cpp
+++ fcgi-2.4.0/libfcgi/fcgio.cpp
@@ -22,6 +22,7 @@
#define DLLAPI __declspec(dllexport)
#endif
+#include <cstdio>
#include <limits.h>
#include "fcgio.h"