4store (1.1.4-2) 1001_fix_ftbfs_with_as_needed.patch

Summary

 src/backend/Makefile.am   |    2 +-
 src/http/Makefile.am      |    2 +-
 src/utilities/Makefile.am |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

    
download this patch

Patch contents

Description: Declare libraries in LIBS (not AM_LDFLAGS) to support --as-needed
Author: Ilya Barygin <barygin@gmail.com>
Bug-Debian: http://bugs.debian.org/633295
Bug-Ubuntu: https://launchpad.net/bugs/803170

--- a/src/backend/Makefile.am
+++ b/src/backend/Makefile.am
@@ -1,5 +1,5 @@
 AM_CFLAGS = -Wall -g -std=gnu99 -O2 -I.. -DGIT_REV=@GIT_REV@ @RAPTOR_CFLAGS@ @GLIB_CFLAGS@ @MDNS_CFLAGS@
-AM_LDFLAGS = -lz @RAPTOR_LIBS@ @GLIB_LIBS@ @MDNS_LIBS@
+LIBS = -lz @RAPTOR_LIBS@ @GLIB_LIBS@ @MDNS_LIBS@
 
 bin_PROGRAMS = 4s-backend
 
--- a/src/http/Makefile.am
+++ b/src/http/Makefile.am
@@ -6,7 +6,7 @@
 
 # PROFILE = -pg
 AM_CFLAGS = -std=gnu99 -Wall $(PROFILE) -g -O2 -I./ -I../ -DGIT_REV=@GIT_REV@ @RASQAL_CFLAGS@ @RAPTOR_CFLAGS@ @GLIB_CFLAGS@ @LIBXML_CFLAGS@ @GTHREAD_CFLAGS@ @MDNS_CFLAGS@ `pcre-config --cflags`
-AM_LDFLAGS = $(PROFILE) @RASQAL_LIBS@ @RAPTOR_LIBS@ @GLIB_LIBS@ @LIBXML_LIBS@ @GTHREAD_LIBS@ @MDNS_LIBS@ `pcre-config --libs`
+LIBS = $(PROFILE) @RASQAL_LIBS@ @RAPTOR_LIBS@ @GLIB_LIBS@ @LIBXML_LIBS@ @GTHREAD_LIBS@ @MDNS_LIBS@ `pcre-config --libs`
 
 4s_httpd_SOURCES = httpd.c ../common/gnu-options.c
 4s_httpd_LDADD = ../common/lib4sintl.a $(FRONTEND) ../common/libsort.a ../libs/stemmer/libstemmer.a ../libs/double-metaphone/libdouble_metaphone.a ../libs/mt19937-64/libmt64.a
--- a/src/utilities/Makefile.am
+++ b/src/utilities/Makefile.am
@@ -1,5 +1,5 @@
 AM_CFLAGS = -Wall -g -std=gnu99 -I.. -DGIT_REV=@GIT_REV@ @GLIB_CFLAGS@
-AM_LDFLAGS = -lz @GLIB_LIBS@ @RAPTOR_LIBS@
+LIBS = -lz @GLIB_LIBS@ @RAPTOR_LIBS@
 
 bin_PROGRAMS = 4s-backend-setup 4s-backend-destroy 4s-backend-info 4s-backend-copy 4s-backend-passwd