Browse Source

Fix building under partly broken FreeBSD 5.1/alpha

master
parent
commit
c48b98310d
  1. 19
      pth/pth.spec

19
pth/pth.spec

@ -33,9 +33,10 @@ Distribution: OpenPKG [BASE]
Group: System
License: GPL
Version: 2.0.0
Release: 20030724
Release: 20030731
# package options
%option with_optimize no
%option with_pthread no
# list of sources
@ -61,9 +62,23 @@ AutoReqProv: no
%setup -q
%build
touch config.cache
case "%{l_target}" in
alpha-freebsd5.[01] )
# FIXME: FreeBSD 5.0/5.1 makecontext(3) is broken on Alpha
( echo "ac_cv_func_makecontext=no"
echo "ac_cv_func_getcontext=no"
echo "ac_cv_func_setcontext=no"
echo "ac_cv_func_swapcontext=no"
echo "ac_cv_stacksetup_makecontext=no"
echo "ac_cv_check_mcsc=no"
) >config.cache
;;
esac
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure \
--cache-file=./config.cache \
--prefix=%{l_prefix} \
--includedir="%{l_prefix}/include/pth" \
--libdir="%{l_prefix}/lib/pth" \
@ -73,7 +88,9 @@ AutoReqProv: no
--disable-tests \
--enable-batch \
--enable-syscall-soft \
%if "%{with_optimize}" == "yes"
--enable-optimize \
%endif
--disable-shared
%{l_make} %{l_mflags}

Loading…
Cancel
Save