Pull request for branch for-2012.05/fix-libfcgi
The following changes since commit ed7b3362ad6dc33899766c803bba51240111aa43:
valgrind: fix build on PowerPC/uClibc (2012-05-06 11:49:19 +0200)
are available in the git repository at:
git://git.free-electrons.com/users/thomas-petazzoni/buildroot.git for-2012.05/fix-libfcgi
for you to fetch changes up to 15397c627335fa50a090bd518b07bbf0b37ab47b:
libfcgi: fix build problem of libfcgi++ (2012-05-06 16:54:35 +0200)
----------------------------------------------------------------
Thomas Petazzoni (1):
libfcgi: fix build problem of libfcgi++
.../libfcgi/libfcgi-link-against-libfcgi-la.patch | 20 ++++++ package/libfcgi/libfcgi-link-against-math.patch | 28 ++++++++ package/libfcgi/libfcgi-make-autoreconfable.patch | 67 ++++++++++++++++++++ package/libfcgi/libfcgi.mk | 2 +- 4 files changed, 116 insertions(+), 1 deletion(-) create mode 100644 package/libfcgi/libfcgi-link-against-libfcgi-la.patch create mode 100644 package/libfcgi/libfcgi-link-against-math.patch create mode 100644 package/libfcgi/libfcgi-make-autoreconfable.patch
Thanks,
Signature · 1 line
Thomas Petazzoni
PATCH 1/1 libfcgi: fix build problem of libfcgi++
Fix the way libfcgi++ is linked against libfcgi to solve the
http://autobuild.buildroot.org/results/f8e88e93f32e4e94ac9aef5a3f3f2826f1970453/build-end.log
build problem.
Since we're fixing Makefile.am, take that opportunity to add -lm where needed, to avoid the need of using custom LDFLAGS in libfcgi.mk.
--- .../libfcgi/libfcgi-link-against-libfcgi-la.patch | 20 ++++++ package/libfcgi/libfcgi-link-against-math.patch | 28 ++++++++ package/libfcgi/libfcgi-make-autoreconfable.patch | 67 ++++++++++++++++++++ package/libfcgi/libfcgi.mk | 2 +- 4 files changed, 116 insertions(+), 1 deletion(-) create mode 100644 package/libfcgi/libfcgi-link-against-libfcgi-la.patch create mode 100644 package/libfcgi/libfcgi-link-against-math.patch create mode 100644 package/libfcgi/libfcgi-make-autoreconfable.patch
package/libfcgi/libfcgi-link-against-libfcgi-la.patch new file +20 -0
@@ -0,0 +1,20 @@ +Properly link libfcgi++ against libfcgi + +We cannot directly use -lfcgi to link libfcgi++ against libfcgi, +because libfcgi is not installed at this time. Instead, we should rely +on libtool doing the right thing, by specifying libfcgi.la in +libfcgi++ LIBADD variable. + +Signed-off-by: Thomas Petazzoni <[email protected]> + +Index: b/libfcgi/Makefile.am +=================================================================== +--- a/libfcgi/Makefile.am ++++ b/libfcgi/Makefile.am +@@ -23,5 +23,6 @@ + $(INCLUDEDIR)/fcgio.h \ + fcgio.cpp + libfcgi___la_CFLAGS = @PTHREAD_CFLAGS@ +-libfcgi___la_LDFLAGS = -lfcgi -rpath @libdir@ ++libfcgi___la_LIBADD = libfcgi.la ++libfcgi___la_LDFLAGS = -rpath @libdir@
package/libfcgi/libfcgi-link-against-math.patch new file +28 -0
@@ -0,0 +1,28 @@ +Link against math libraries when needed + +Signed-off-by: Thomas Petazzoni <[email protected]> + +Index: b/cgi-fcgi/Makefile.am +=================================================================== +--- a/cgi-fcgi/Makefile.am ++++ b/cgi-fcgi/Makefile.am +@@ -11,5 +11,5 @@ + LIBDIR = ../libfcgi + LIBFCGI = $(LIBDIR)/libfcgi.la + +-LDADD = $(LIBFCGI) ++LDADD = $(LIBFCGI) -lm + cgi_fcgi_SOURCES = $(INCLUDE_FILES) cgi-fcgi.c +Index: b/examples/Makefile.am +=================================================================== +--- a/examples/Makefile.am ++++ b/examples/Makefile.am +@@ -21,7 +21,7 @@ + LIBDIR = ../libfcgi + LIBFCGI = $(LIBDIR)/libfcgi.la + +-LDADD = $(LIBFCGI) ++LDADD = $(LIBFCGI) -lm + + echo_SOURCES = $(INCLUDE_FILES) echo.c + echo_x_SOURCES = $(INCLUDE_FILES) echo-x.c
package/libfcgi/libfcgi-make-autoreconfable.patch new file +67 -0
67 lines not on this page · raw message
package/libfcgi/libfcgi.mk +1 -1
@@ -7,6 +7,6 @@ LIBFCGI_VERSION = 2.4.0 LIBFCGI_SOURCE = fcgi-$(LIBFCGI_VERSION).tar.gz LIBFCGI_SITE = http://www.fastcgi.com/dist LIBFCGI_INSTALL_STAGING = YES -LIBFCGI_CONF_ENV = LDFLAGS="$(TARGET_LDFLAGS) -lm" +LIBFCGI_AUTORECONF = YES $(eval $(call AUTOTARGETS))
Signature · 1 line
1.7.9.5
PATCH 1/1 libfcgi: fix build problem of libfcgi++
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Thomas> Fix the way libfcgi++ is linked against libfcgi to solve the
Thomas> http://autobuild.buildroot.org/results/f8e88e93f32e4e94ac9aef5a3f3f2826f1970453/build-end.log
Thomas> build problem.
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard