From 57c61d70ec1920f731f9509510e6913aa1d62aa3 Mon Sep 17 00:00:00 2001 From: Tiziano Müller Date: Fri, 18 Jul 2014 09:24:38 +0200 Subject: build: add libraries to LIBADD instead of LDFLAGS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For a number of linker flags the order of the object files and the libs to link against matter (for example -Wl,--as-needed). Make sure that libraries are added via the LIBADD variable instead of LDFLAGS and therefore always come after the object files. Change-Id: I59d114752a0c7664b8678a72082ba5e445497fe5 Signed-off-by: Tiziano Müller Reviewed-on: http://review.gluster.org/8331 Reviewed-by: Harshavardhana Reviewed-by: Prashanth Pai Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/features/compress/src/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/features/compress/src') diff --git a/xlators/features/compress/src/Makefile.am b/xlators/features/compress/src/Makefile.am index 263b21b783b..e69dc6bf236 100644 --- a/xlators/features/compress/src/Makefile.am +++ b/xlators/features/compress/src/Makefile.am @@ -4,10 +4,10 @@ xlatordir = $(libdir)/glusterfs/$(PACKAGE_VERSION)/xlator/features noinst_HEADERS = cdc.h cdc-mem-types.h -cdc_la_LDFLAGS = -module -avoid-version $(LIBZ_LIBS) +cdc_la_LDFLAGS = -module -avoid-version cdc_la_SOURCES = cdc.c cdc-helper.c -cdc_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la +cdc_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la $(LIBZ_LIBS) AM_CPPFLAGS = $(GF_CPPFLAGS) -I$(top_srcdir)/libglusterfs/src -fPIC -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D$(GF_HOST_OS) \ -shared $(LIBZ_CFLAGS) -- cgit