]> git.pld-linux.org Git - packages/db.git/blobdiff - db.spec
- fixed bcond. spaces -> tab.
[packages/db.git] / db.spec
diff --git a/db.spec b/db.spec
index e5525efdbf8fda3b3dab4d546efc1038445be0a4..eef6e03af755c078720512ee06497726a1ab0664 100644 (file)
--- a/db.spec
+++ b/db.spec
@@ -1,8 +1,9 @@
 #
 # Conditional build:
 %bcond_with    java    # build db-java (required for openoffice)
-%bcond_without  tcl    # don't build tcl bindings
-#
+%bcond_without tcl     # don't build tcl bindings
+%bcond_with    nptl    # enable posix mutexes
+
 Summary:       Berkeley DB database library for C
 Summary(pl):   Biblioteka C do obsĀ³ugi baz Berkeley DB
 Name:          db
@@ -224,13 +225,15 @@ CC="%{__cc}"
 CXX="%{__cxx}"
 CFLAGS="%{rpmcflags}"
 CXXFLAGS="%{rpmcflags} -fno-implicit-templates"
-export CC CXX CFLAGS CXXFLAGS
+LDFLAGS="%{rpmldflags} %{?with_nptl:-lpthread}"
+export CC CXX CFLAGS CXXFLAGS LDFLAGS
 
 ../dist/%configure \
        --enable-compat185 \
        --disable-shared \
        --enable-static \
        --enable-rpc \
+       %{?with_nptl:--enable-posixmutexes} \
        --enable-cxx
 
 # (temporarily?) disabled because of compilation errors:
@@ -245,6 +248,7 @@ cd ../build_unix
        --libdir=%{_libdir} \
        --enable-compat185 \
        --enable-rpc \
+       %{?with_nptl:--enable-posixmutexes} \
        --enable-cxx \
        %{?with_tcl:--enable-tcl} \
        %{?with_tcl:--with-tcl=/usr/lib} \
This page took 1.068355 seconds and 4 git commands to generate.