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 73200f3..1fd1acd 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 b9e52fc..8d17f77 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           \