summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2010-06-19 10:36:24 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2010-06-19 10:37:41 -0700
commit3f59728ddc6f7d2cb17d434e81ac76c9288d0aef (patch)
treee23b974038165b4959ba2479ae8c03ec897cf1f5
parente0ae5251cd030b201c14f5888a539aa40f17abfb (diff)
Let libtool handle library flags for scanpci on Solaris
Stop hardcoding -ldevinfo since configure/libtool already know to add it for static linking, and ELF dependencies handle it for dynamic linking Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/Makefile.am6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 8afd53b..0ee8449 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -69,7 +69,7 @@ libpciaccess_la_SOURCES = common_bridge.c \
INCLUDES = -I$(top_srcdir)/include
-libpciaccess_la_LIBADD = @PCIACCESS_LIBS@
+libpciaccess_la_LIBADD = $(PCIACCESS_LIBS)
libpciaccess_la_LDFLAGS = -version-number 0:10:8 -no-undefined
@@ -80,8 +80,4 @@ libpciaccessinclude_HEADERS = \
noinst_PROGRAMS = scanpci
scanpci_SOURCES = scanpci.c
-if SOLARIS
-scanpci_LDADD = libpciaccess.la -ldevinfo
-else
scanpci_LDADD = libpciaccess.la
-endif