Browse Source

try to fix run-time under FreeBSD

master
parent
commit
b6c9fd5f3a
  1. 16
      apache-python/apache-python.spec

16
apache-python/apache-python.spec

@ -32,7 +32,7 @@ Class: EVAL
Group: Web
License: Apache
Version: 3.3.1
Release: 20100725
Release: 20101212
# list of sources
Source0: http://www.apache.org/dist/httpd/modpython/mod_python-%{version}.tgz
@ -65,10 +65,16 @@ PreReq: apache, python
%patch -p0
%build
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
CPPFLAGS="%{l_cppflags}" \
LDFLAGS="%{l_ldflags}" \
export CC="%{l_cc}"
export CFLAGS="%{l_cflags -O}"
export CPPFLAGS="%{l_cppflags}"
export LDFLAGS="%{l_ldflags}"
case "%{l_platform -t}" in
*-freebsd* )
CFLAGS="$CFLAGS -pthread"
LDFLAGS="$LDFLAGS -pthread -lpthread"
;;
esac
./configure \
--prefix=%{l_prefix} \
--with-apxs=%{l_prefix}/sbin/apxs \

Loading…
Cancel
Save