summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Graf <tgraf@redhat.com>2011-09-13 23:21:52 +0200
committerThomas Graf <tgraf@redhat.com>2011-09-13 23:21:52 +0200
commit109ea68ac0c12f9a21197380d0925d4aa79d6a15 (patch)
treef1ca031e5292d2cb765235929cc9a879d7a1f968
parent6d93b831dd6a8e4720ffcd3e3566ba516c0f44d4 (diff)
downloadlibnl-109ea68ac0c12f9a21197380d0925d4aa79d6a15.tar.gz
tools: Use LDADD and link against .la files instead of LDFLAGS and -llib
-rw-r--r--src/Makefile.am8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index e196b58..3b5c140 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -3,7 +3,13 @@
SUBDIRS = lib
AM_CPPFLAGS = -Wall -I${top_srcdir}/include -I${top_builddir}/include -D_GNU_SOURCE -DSYSCONFDIR=\"$(sysconfdir)/libnl\"
-AM_LDFLAGS = -L${top_builddir}/lib -L${top_builddir}/src/lib -lnl-cli -lnl -lnl-nf -lnl-genl -lnl-route
+
+LDADD = \
+ ${top_builddir}/src/lib/libnl-cli-3.la \
+ ${top_builddir}/lib/libnl-3.la \
+ ${top_builddir}/lib/libnl-nf-3.la \
+ ${top_builddir}/lib/libnl-genl-3.la \
+ ${top_builddir}/lib/libnl-route-3.la
sbin_PROGRAMS = \
nl-qdisc-add nl-qdisc-list nl-qdisc-delete \