[Debian-ha-commits] [pacemaker] 28/69: Libraries go after linker flags

Christoph Berg myon at debian.org
Tue Jan 26 09:14:26 UTC 2016


This is an automated email from the git hooks/post-receive script.

myon pushed a commit to branch debian/master
in repository pacemaker.

commit 90662b487d63abe243d9de8463d907da9e37b406
Author: Ferenc Wágner <wferi at niif.hu>
Date:   Mon Dec 21 18:04:02 2015 +0100

    Libraries go after linker flags
    
    Ensure that options like -Wl,--as-needed are effective for the stack
    libraries.
    
    Signed-off-by: Ferenc Wágner <wferi at niif.hu>
---
 lib/cluster/Makefile.am | 4 ++--
 mcp/Makefile.am         | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/cluster/Makefile.am b/lib/cluster/Makefile.am
index 29daeb2..c063340 100644
--- a/lib/cluster/Makefile.am
+++ b/lib/cluster/Makefile.am
@@ -28,8 +28,8 @@ header_HEADERS =
 lib_LTLIBRARIES	= libcrmcluster.la 
 
 libcrmcluster_la_SOURCES = election.c cluster.c membership.c
-libcrmcluster_la_LDFLAGS = -version-info 5:0:1 $(CLUSTERLIBS) 
-libcrmcluster_la_LIBADD  = $(top_builddir)/lib/common/libcrmcommon.la $(top_builddir)/lib/fencing/libstonithd.la
+libcrmcluster_la_LDFLAGS = -version-info 5:0:1
+libcrmcluster_la_LIBADD  = $(top_builddir)/lib/common/libcrmcommon.la $(top_builddir)/lib/fencing/libstonithd.la $(CLUSTERLIBS)
 libcrmcluster_la_DEPENDENCIES = $(top_builddir)/lib/common/libcrmcommon.la $(top_builddir)/lib/fencing/libstonithd.la 
 
 if BUILD_CS_SUPPORT
diff --git a/mcp/Makefile.am b/mcp/Makefile.am
index eb579cc..c3caf19 100644
--- a/mcp/Makefile.am
+++ b/mcp/Makefile.am
@@ -33,7 +33,7 @@ noinst_HEADERS		= pacemaker.h
 
 pacemakerd_SOURCES	= pacemaker.c corosync.c 
 pacemakerd_LDADD	= $(top_builddir)/lib/cluster/libcrmcluster.la $(top_builddir)/lib/common/libcrmcommon.la
-pacemakerd_LDFLAGS	= $(CLUSTERLIBS)
+pacemakerd_LDADD	+= $(CLUSTERLIBS)
 
 clean-generic:
 	rm -f *.log *.debug *.xml *~

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/pacemaker.git



More information about the Debian-HA-Commits mailing list