OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 20-Feb-2005 10:06:52
Branch: HEAD Handle: 2005022009065200
Added files:
openpkg-src/gmp gmp.patch
Modified files:
openpkg-src/gmp gmp.spec
Log:
we have to disable even more for disabling the assembly stuff under
sparc/solaris
Summary:
Revision Changes Path
1.1 +93 -0 openpkg-src/gmp/gmp.patch
1.29 +3 -1 openpkg-src/gmp/gmp.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/gmp/gmp.patch
============================================================================
$ cvs diff -u -r0 -r1.1 gmp.patch
--- /dev/null 2005-02-20 10:00:09 +0100
+++ gmp.patch 2005-02-20 10:06:52 +0100
@@ -0,0 +1,93 @@
+Index: configure
+--- configure.orig 2004-09-21 15:06:47.000000000 +0200
++++ configure 2005-02-20 09:59:27.488990608 +0100
+@@ -2476,89 +2476,6 @@
+ sh-*-*) path="sh" ;;
+ sh2-*-*) path="sh/sh2 sh" ;;
+
+- *sparc*-*-*)
+- # For cc and acc, -g disables -O, so it's not used
+- cclist="gcc acc cc"
+- path="sparc32"
+- gcc_cflags="-g -O2"
+- gcc_cflags_optlist="cpu"
+- gcc_cflags_cpu=
+- acc_cflags="-O2"
+- cc_cflags="-O2"
+-
+-echo "include_mpn(\`sparc32/sparc-defs.m4')" >> $gmp_tmpconfigm4i
+-
+- # FIXME: This should be selected according to the CPU
+- if test x${floating_point} = xno
+- then extra_functions="udiv_nfp"
+- else extra_functions="udiv_fp"
+- fi
+-
+- case $host in
+- sparcv8*-*-* | supersparc*-*-* | microsparc*-*-*)
+- gcc_cflags_cpu="-mcpu=v8 -mv8"
+- acc_cflags="-O2 -cg92"
+- path="sparc32/v8 sparc32"
+- extra_functions="udiv"
+-
+- case $host in
+- *-*-solaris2.*) cc_cflags="-xtarget=native -xarch=v8 -xO4" ;;
+- esac
+- case $host in
+- supersparc*-*-*) path="sparc32/v8/supersparc sparc32/v8 sparc32"
;;
+- esac
+- ;;
+-
+- # sparc64-*-linux-gnu is a misnomer, since there's no support for any
+- # 64-bit operations in user mode. We assume that a future release
+- # will have some 64-bit support and that the gcc options will be the
+- # same as on solaris.
+- #
+- # cc -xarch actually controls the ABI, hence it must be v8 for 32-bit,
+- # even though the chip is v9.
+- #
+- sparcv9*-*-* | ultrasparc*-*-* | sparc64-*-*)
+- path="sparc32/v9 sparc32/v8 sparc32"
+- extra_functions="udiv_fp"
+-
+- SPEED_CYCLECOUNTER_OBJ=sparcv9.lo
+-
+- gcc_cflags="-g -O2 -Wa,-xarch=v8plus"
+- gcc_cflags_cpu="-mcpu=ultrasparc -mcpu=v9 -mcpu=v8 -mv8"
+-
+- # must have -xarch=v8plus here, to get the right assembler options
+- # for our mpn/sparc32/v9 code
+- cc_cflags="-xtarget=native -xarch=v8plus -xO4"
+-
+- case $host in
+- *-*-solaris2.[7-9])
+- # solaris prior to 2.6 doesn't save registers properly, so the
+- # 64-bit ABI is only available for 2.7 up
+- abilist="64 32"
+- path_64="sparc64"
+- cclist_64="gcc cc"
+- gcc_64_cflags="-g -O2 -m64 -mptr64 -Wa,-xarch=v9 -mcpu=v9"
+- gcc_64_ldflags="-Wc,-m64"
+- # -fast enables different optimizations depending compiler version
+- # -fns=no and -fsimple=1 disables some transformations that
+- # conflict with IEEE 754, which some compiler versions perform.
+- cc_64_cflags="-fast -fns=no -fsimple=1 -xarch=v9"
+- SPEED_CYCLECOUNTER_OBJ_64=sparcv9.lo
+- cyclecounter_size_64=2
+- ;;
+- *-*-*bsd*)
+- # NetBSD and OpenBSD sparc64
+- abilist="64"
+- extra_functions=
+- path="sparc64"
+- gcc_cflags="-g -O2"
+- cyclecounter_size=2
+- ;;
+- esac
+- ;;
+- esac
+- ;;
+-
+ # VAX
+ vax*-*-*)
+ # Currently (version 3.0) gcc on vax always uses a frame pointer
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/gmp/gmp.spec
============================================================================
$ cvs diff -u -r1.28 -r1.29 gmp.spec
--- openpkg-src/gmp/gmp.spec 18 Feb 2005 16:06:33 -0000 1.28
+++ openpkg-src/gmp/gmp.spec 20 Feb 2005 09:06:52 -0000 1.29
@@ -34,10 +34,11 @@
Group: Algorithm
License: LGPL
Version: 4.1.4
-Release: 20050218
+Release: 20050220
# list of sources
Source0: ftp://ftp.gnu.org/gnu/gmp/gmp-%{version}.tar.gz
+Patch0: gmp.patch
# build information
Prefix: %{l_prefix}
@@ -67,6 +68,7 @@
%prep
%setup -q
+ %patch -p0
rm -rf mpn/sparc*
%build
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]