- IMHO better handling of without_static_libs
authorwitekfl <witekfl@pld-linux.org>
Wed, 19 Apr 2006 17:41:20 +0000 (17:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    db4.4.spec -> 1.5

db4.4.spec

index b7d672c..554bbbb 100644 (file)
@@ -254,6 +254,7 @@ cp -f /usr/share/libtool/ltmain.sh .
 sh s_config
 cd ..
 
+%if %{with static_libs}
 cp -a build_unix build_unix.static
 
 cd build_unix.static
@@ -271,15 +272,16 @@ export CC CXX CFLAGS CXXFLAGS LDFLAGS
        --enable-static \
        --enable-rpc \
        --%{?with_pmutex:en}%{!?with_pmutex:dis}able-posixmutexes \
-       --enable-cxx \
-       %{!?with_static_libs:--disable-static}
+       --enable-cxx
 
 # (temporarily?) disabled because of compilation errors:
 #      --enable-dump185 \
 
 %{__make} library_build
+cd ..
+%endif
 
-cd ../build_unix
+cd build_unix
 
 ../dist/%configure \
        --prefix=%{_prefix} \
@@ -292,8 +294,7 @@ cd ../build_unix
        %{?with_tcl:--with-tcl=/usr/lib} \
        %{?with_java:--enable-java} \
        --disable-static \
-       --enable-shared \
-       %{!?with_static_libs:--disable-static}
+       --enable-shared
 
 %{__make} library_build \
        TCFLAGS='-I$(builddir) -I%{_includedir}' \
@@ -307,9 +308,11 @@ install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_bindir},/%{_lib}}
 install -d $RPM_BUILD_ROOT%{_javadir}
 %endif
 
+%if %{with static_libs}
 %{__make} -C build_unix.static library_install \
        docdir=%{_docdir}/db-%{version}-docs \
        DESTDIR=$RPM_BUILD_ROOT
+%endif
 
 %{__make} -C build_unix library_install \
        docdir=%{_docdir}/db-%{version}-docs \
This page took 0.098888 seconds and 4 git commands to generate.