summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2010-10-15 17:34:16 -0400
committerGaetan Nadon <memsize@videotron.ca>2010-10-15 17:34:16 -0400
commite29e477ff84ab16938e58ae2719358c14c86a500 (patch)
tree7f7a2f99cd1b71983e30f2b9947663cfc81a4e66
parentfd476deabb97d08086ad465c4d0e913c9437a6bb (diff)
config: use LDADD to obtain appropriate dependencies
In generated scanpci/Makefile, this line is added: scanpci_DEPENDENCIES = $(top_builddir)/src/libpciaccess.la If the content of the library changes, the tool will rebuild. When scanpci was in the same directory as the library, the .la file was used. This will also ensure the "installed" pciaccess library is not used. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
-rw-r--r--scanpci/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/scanpci/Makefile.am b/scanpci/Makefile.am
index 6fdf86e..68d54f4 100644
--- a/scanpci/Makefile.am
+++ b/scanpci/Makefile.am
@@ -24,6 +24,6 @@
noinst_PROGRAMS = scanpci
AM_CPPFLAGS = -I$(top_srcdir)/include
-AM_LDFLAGS = -L$(top_builddir)/src -lpciaccess
+LDADD = $(top_builddir)/src/libpciaccess.la
scanpci_SOURCES = scanpci.c