SPECS (sparc64): gcc.spec - devel gcc.spec fur sparc64

misi3k misi3k at pld-linux.org
Mon Jun 20 12:39:02 CEST 2005


Author: misi3k                       Date: Mon Jun 20 10:39:02 2005 GMT
Module: SPECS                         Tag: sparc64
---- Log message:
- devel gcc.spec fur sparc64

---- Files affected:
SPECS:
   gcc.spec (1.241.2.4 -> 1.241.2.4.2.1) 

---- Diffs:

================================================================
Index: SPECS/gcc.spec
diff -u SPECS/gcc.spec:1.241.2.4 SPECS/gcc.spec:1.241.2.4.2.1
--- SPECS/gcc.spec:1.241.2.4	Sat Jan 15 15:41:53 2005
+++ SPECS/gcc.spec	Mon Jun 20 12:38:56 2005
@@ -54,6 +54,7 @@
 Patch24:	gcc32-test-rotate.patch
 Patch25:	gcc-cmpi.patch
 Patch26:	gcc-ffi64.patch
+Patch27:	gcc33-multi32-hack.patch
 BuildRequires:	autoconf
 BuildRequires:	automake
 BuildRequires:	binutils >= 2:2.15.90.0.3
@@ -75,11 +76,19 @@
 URL:		http://gcc.gnu.org/
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define 	multilib_64_archs sparc64 ppc64 s390x x86_64
+
 %define		_slibdir	/%{_lib}
 %ifarch sparc64
-%define		_slibdir64	/lib64
+#%define		_slibdir64	/lib64
 %define		_libdir		/usr/lib
-%define		rpmcflags	-O2 -mtune=ultrasparc
+%define		rpmcflags	-mtune=ultrasparc
+%define 	multilib_32_arch sparc
+%endif
+
+%ifarch sparc
+%define 	_target_platform sparc64-%{_vendor}-%{_target_os}
+%define		rpmcflags	-mtune=ultrasparc
 %endif
 
 %description
@@ -764,7 +773,7 @@
 %patch3 -p1
 %{!?debug:%patch4 -p1}
 %patch5 -p1
-%ifarch amd64
+%ifarch amd64 sparc64
 # not sure if it wouldn't break x86 (it shouldn't, but better safe than sorry)
 %patch6 -p1
 %endif
@@ -788,6 +797,10 @@
 %patch24
 %patch25 -p1
 %patch26 -p2
+%ifarch sparc ppc
+%patch27 -p0 
+%endif
+
 
 # because we distribute modified version of gcc...
 perl -pi -e 's/(version.*)";/$1 (PLD Linux)";/' gcc/version.c
@@ -800,6 +813,26 @@
 
 rm -rf obj-%{_target_platform} && install -d obj-%{_target_platform} && cd obj-%{_target_platform}
 
+%ifarch sparc64
+cat > gcc64 <<"EOF"
+#!/bin/sh
+exec /usr/bin/gcc -m64 "$@"
+EOF
+chmod +x gcc64
+CC=`pwd`/gcc64
+%endif
+%ifarch ppc64
+if gcc -m64 -xc -S /dev/null -o - > /dev/null 2>&1; then
+  cat > gcc64 <<"EOF"
+#!/bin/sh
+exec /usr/bin/gcc -m64 "$@"
+EOF
+  chmod +x gcc64
+  CC=`pwd`/gcc64
+fi
+%endif
+
+CC="${CC}" \
 CFLAGS="%{rpmcflags}" \
 CXXFLAGS="%{rpmcflags}" \
 TEXCONFIG=false ../configure \
@@ -809,6 +842,8 @@
 	--infodir=%{_infodir} \
 	--mandir=%{_mandir} \
 	--enable-shared \
+	--disable-checking \
+	--disable-libunwind-exceptions \
 	--enable-threads=posix \
 	--enable-__cxa_atexit \
 	--enable-languages="c,c++,f77%{?with_objc:,objc}%{?with_ada:,ada}%{?with_java:,java},ksi" \
@@ -825,8 +860,15 @@
 	--with-system-zlib \
 	--with-slibdir=%{_slibdir} \
 	--without-x \
-	%{_target_platform}
-
+	%ifarch sparc
+        --host=%{_target_platform} \
+	--build=%{_target_platform} \
+	--target=%{_target_platform} \
+	--with-cpu=v7
+	%endif
+	%ifnarch sparc
+	%{_target_platform} 
+	%endif
 PATH=$PATH:/sbin:%{_sbindir}
 
 cd ..
@@ -1262,6 +1304,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.241.2.4.2.1  2005/06/20 10:38:56  misi3k
+- devel gcc.spec fur sparc64
+
 Revision 1.241.2.4  2005/01/15 14:41:53  qboosh
 - release 2
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/gcc.spec?r1=1.241.2.4&r2=1.241.2.4.2.1&f=u




More information about the pld-cvs-commit mailing list