]> git.pld-linux.org Git - packages/apr-compat.git/commitdiff
- disable sendfile64 on 32-bit ppc; release 2 auto/ac/apr-1_2_2-2
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 2 Dec 2005 10:16:07 +0000 (10:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apr-compat.spec -> 1.42

apr-compat.spec

index e74c2a223abe7337f975872a705d30e09b280818..2eb8ef72e3653b806a7f468818e26737fe651564 100644 (file)
@@ -1,13 +1,18 @@
 #
 # Conditional build (Linux 2.4 compat, switch after Ac):
 %bcond_with    epoll           # use epoll() syscall (requires Linux 2.6)
+%bcond_with    sendfile64      # use sendfile64 on even if it requires Linux 2.6
 %bcond_with    tcpnodelaycork  # use TCP_NODELAY|TCP_CORK flags (requires Linux 2.6)
 #
+# Linux 2.4.32 supports sendfile64 only on i386 and mips (only 32-bit archs matter)
+%ifnarch ppc sparc sparc64
+%define                with_sendfile64         1
+%endif
 Summary:       Apache Portable Runtime
 Summary(pl):   Apache Portable Runtime - przeno¶na biblioteka uruchomieniowa
 Name:          apr
 Version:       1.2.2
-Release:       1
+Release:       2
 Epoch:         1
 License:       Apache v2.0
 Group:         Libraries
@@ -85,12 +90,9 @@ Statyczna biblioteka apr.
 %build
 install /usr/share/automake/config.* build
 ./buildconf
-# 2.4/2.6 kernels on sparc32 do not support sendfile64
 %configure \
        %{!?with_tcpnodelaycork:apr_cv_tcp_nodelay_with_cork=no} \
-%ifarch sparc sparcv9
-       ac_cv_func_sendfile64=no \
-%endif
+       %{!?with_sendfile64:ac_cv_func_sendfile64=no} \
        --with-devrandom=/dev/urandom \
 %ifarch %{ix86} %{i8664}
 %ifnarch i386
This page took 0.075502 seconds and 4 git commands to generate.