Author: glen                         Date: Sat Feb  9 13:08:36 2008 GMT
Module: SPECS                         Tag: AC-branch
---- Log message:
- static_libs bcond, drop filterout_fld

---- Files affected:
SPECS:
   net-snmp.spec (1.104.2.4 -> 1.104.2.5) 

---- Diffs:

================================================================
Index: SPECS/net-snmp.spec
diff -u SPECS/net-snmp.spec:1.104.2.4 SPECS/net-snmp.spec:1.104.2.5
--- SPECS/net-snmp.spec:1.104.2.4       Sat Feb  9 11:41:12 2008
+++ SPECS/net-snmp.spec Sat Feb  9 14:08:31 2008
@@ -18,6 +18,7 @@
 %bcond_without lm_sensors      # don't include sensors support
 %bcond_without perl            # don't include Perl modules and utils
 %bcond_without python          # don't include Python modules
+%bcond_without static_libs     # don't build static library
 #
 %include       /usr/lib/rpm/macros.perl
 Summary:       A collection of SNMP protocol tools
@@ -85,7 +86,6 @@
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                logfile         /var/log/snmpd.log
-%define                filterout_ld    -Wl,--as-needed
 
 %description
 SNMP (Simple Network Management Protocol) is a protocol used for
@@ -427,6 +427,7 @@
 %configure \
        --disable-debugging \
        --enable-as-needed \
+       %{!?with_static_libs:--disable-static} \
        --with-cflags="%{rpmcflags} -I/usr/include/et" \
        --with-ldflags="%{rpmldflags}" \
        --with-defaults \
@@ -589,9 +590,11 @@
 %{_mandir}/man3/[!NS]*
 %{_mandir}/man5/mib2c.conf.5*
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libnet*.a
+%endif
 
 %files compat-devel
 %defattr(644,root,root,755)
@@ -599,9 +602,11 @@
 %{_libdir}/libsnmp.la
 %{_includedir}/ucd-snmp
 
+%if %{with static_libs}
 %files compat-static
 %defattr(644,root,root,755)
 %{_libdir}/libsnmp.a
+%endif
 
 %files mibs
 %defattr(644,root,root,755)
@@ -723,6 +728,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.104.2.5  2008-02-09 13:08:31  glen
+- static_libs bcond, drop filterout_fld
+
 Revision 1.104.2.4  2008-02-09 10:41:12  glen
 - HEAD merge; rel 5
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/net-snmp.spec?r1=1.104.2.4&r2=1.104.2.5&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to