[pacman-dev] [PATCH] src/util: link vercmp against .lo, not the .o

Dave Reisner d at falconindy.com
Sun Oct 30 10:14:37 EDT 2011


This seems to fix FS#26652.

Signed-off-by: Dave Reisner <dreisner at archlinux.org>
---
I'm no libtool expert, but this seems to fix the build with --disable-static
and the dependencies still look correct for vercmp.

 src/util/Makefile.am |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/util/Makefile.am b/src/util/Makefile.am
index 11308fb..e4af56c 100644
--- a/src/util/Makefile.am
+++ b/src/util/Makefile.am
@@ -31,6 +31,6 @@ testpkg_SOURCES = testpkg.c
 testpkg_LDADD = $(top_builddir)/lib/libalpm/.libs/libalpm.la
 
 vercmp_SOURCES = vercmp.c
-vercmp_LDADD = $(top_builddir)/lib/libalpm/version.o
+vercmp_LDADD = $(top_builddir)/lib/libalpm/version.lo
 
 # vim:set ts=2 sw=2 noet:
-- 
1.7.7.1



More information about the pacman-dev mailing list