]> git.pld-linux.org Git - packages/net-snmp.git/commitdiff
- compilation with userspace kernel headers fixed (-kernel_headers.patch)
authorJacek Konieczny <jajcus@pld-linux.org>
Sun, 21 Dec 2003 19:17:47 +0000 (19:17 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- don't pass %{_prefix} with --with-... configure options
- override LDFLAGS for make (so -L/usr/lib is not included)

Changed files:
    net-snmp.spec -> 1.27

net-snmp.spec

index c35fa0403b3a6ea9c3db2bad214fb18141aaf962..a4069b012ea91281e024e85fd009069a2896c7bc 100644 (file)
@@ -44,6 +44,7 @@ Patch5:               %{name}-manpage.patch
 Patch6:                %{name}-link.patch
 Patch7:                %{name}-llinterfaces.patch
 Patch8:                %{name}-usr_local_bin_perl.patch
+Patch9:                %{name}-kernel_headers.patch
 URL:           http://www.net-snmp.org/
 BuildRequires: autoconf >= 2.57-3
 BuildRequires: automake
@@ -386,6 +387,7 @@ Przegl
 %patch6 -p1
 %patch7 -p2
 %patch8 -p0
+%patch9 -p1
 
 %build
 %{__libtoolize}
@@ -400,8 +402,8 @@ Przegl
        --with-sys-location="Unknown" \
        --with-mib-modules="host disman/event-mib smux mibII/mta_sendmail \
                agentx target misc/ipfwacc tunnel" \
-       --with-libwrap=%{_prefix} \
-       --with-openssl=%{_prefix} \
+       --with-libwrap \
+       --with-openssl \
        --disable-debugging \
        --with-persistent-directory="/var/lib/net-snmp" \
        --enable-ipv6 \
@@ -427,7 +429,8 @@ PATH=`pwd`:$PATH \
 # avoid rpaths generated by MakeMaker
 perl -pi -e 's@LD_RUN_PATH="\$\(LD_RUN_PATH\)" @@' */Makefile */*/Makefile
 
-%{__make}
+%{__make} \
+       LDFLAGS="%{rpmldflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.201289 seconds and 4 git commands to generate.