]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
For now only build a static (but PIC) libsatsolver.a. No sense in doing
authorMichael Matz <matz@suse.de>
Fri, 12 Oct 2007 14:58:08 +0000 (14:58 +0000)
committerMichael Matz <matz@suse.de>
Fri, 12 Oct 2007 14:58:08 +0000 (14:58 +0000)
a shared lib with an unstable API.

configure.in
src/Makefile.am

index 73200f31e74299010089685bf34d171d01903be4..1fd1acdd634a31f8b14862a119924647e63d4c1f 100644 (file)
@@ -43,6 +43,9 @@ AC_PROG_INSTALL
 # Set STDC_HEADERS
 AC_HEADER_STDC
 
+# Turn off the shared solver library until we have a stable API
+AC_DISABLE_SHARED
+
 # Initialize libtool
 AM_PROG_LIBTOOL
 
index b9e52fcc3bef4a4dcff597b7630576cda4782ded..8d17f77ff53b6608facc06ca06113a0f2c28a9a6 100644 (file)
@@ -18,8 +18,9 @@ solverinclude_HEADERS = \
 
 EXTRA_DIST = poolid_private.h
 
-libsatsolver_la_LDFLAGS = -version-info 0:0:0
-
+# As long as we build libsatsolver.la statically only we need to
+# force PIC code here, as this lib will be included in libzypp.
+libsatsolver_la_CFLAGS = -fPIC $(AM_CFLAGS)
 libsatsolver_la_SOURCES = \
         bitmap.c        \
        evr.c           \