]> sourceware.org Git - libabigail.git/commitdiff
Place -L/-l flags into *_LIBADD/*_LDADD
authorJan Engelhardt <jengelh@inai.de>
Tue, 9 Sep 2014 11:05:52 +0000 (13:05 +0200)
committerDodji Seketeli <dodji@redhat.com>
Fri, 12 Sep 2014 09:04:59 +0000 (11:04 +0200)
* src/Makefile.am: -L and -l ought to be in LIBADD/LDADD because
that is the only place guaranteed to be in the right spot.  So add
Them to libabigail_la_LIBADD.
* tools/Makefile.am: Likewise.

Signed-off-by: Jan Engelhardt <jengelh@inai.de>
src/Makefile.am
tools/Makefile.am

index aa5a093190a2b357c16406fbe1872e4d36540b8f..9c08400a774fab778355faca9d434c941b7c01c4 100644 (file)
@@ -20,7 +20,8 @@ abg-viz-common.cc                     \
 abg-viz-dot.cc                         \
 abg-viz-svg.cc
 
-libabigail_la_LDFLAGS=$(DEPS_LIBS) -Wl,--as-needed
+libabigail_la_LIBADD = $(DEPS_LIBS)
+libabigail_la_LDFLAGS = -Wl,--as-needed -no-undefined
 
 AM_CPPFLAGS=$(DEPS_CPPFLAGS) -Wall -I$(abs_top_srcdir)/include -I$(abs_top_builddir)/include -I$(abs_top_builddir)
 AM_CXXFLAGS="-std=gnu++11"
index f8bcf19009afcacf1476eac30f32dbbd1a43bc6a..8f3003e29fc147dff5a9effcd99c12a96d842bb0 100644 (file)
@@ -15,27 +15,23 @@ endif
 if ENABLE_ZIP_ARCHIVE
 biar_SOURCES = biar.cc
 biardir = $(bindir)
-biar_LDFLAGS = $(abs_top_builddir)/src/libabigail.la $(abs_top_builddir)/tools/libtoolsutils.la
-biar_DEPENDENCIES = libtoolsutils.la
+biar_LDADD = ../src/libabigail.la libtoolsutils.la
 endif
 
 bidiff_SOURCES = bidiff.cc
 bidiffdir = $(bindir)
-bidiff_LDFLAGS = $(abs_top_builddir)/src/libabigail.la $(abs_top_builddir)/tools/libtoolsutils.la
-bidiff_DEPENDENCIES = libtoolsutils.la
+bidiff_LDADD = ../src/libabigail.la libtoolsutils.la
 
 bilint_SOURCES = bilint.cc
 bilintdir = $(bindir)
-bilint_LDFLAGS = $(abs_top_builddir)/src/libabigail.la $(abs_top_builddir)/tools/libtoolsutils.la
-bilint_DEPENDENCIES = libtoolsutils.la
+bilint_LDADD = ../src/libabigail.la libtoolsutils.la
 
 bidw_SOURCES = bidw.cc
 bidwdir = $(bindir)
-bidw_LDFLAGS = $(abs_top_builddir)/src/libabigail.la $(abs_top_builddir)/tools/libtoolsutils.la
-bidw_DEPENDENCIES = libtoolsutils.la
+bidw_LDADD = ../src/libabigail.la libtoolsutils.la
 
 bisym_SOURCES = bisym.cc
 bisymdir = $(bindir)
-bisym_LDFLAGS = $(abs_top_builddir)/src/libabigail.la
+bisym_LDADD = ../src/libabigail.la
 
 AM_CPPFLAGS=-I$(abs_top_srcdir)/include -I$(abs_top_srcdir)/tools
This page took 0.034413 seconds and 5 git commands to generate.