1 |
< |
### RPM external gcc 3.4.5 |
1 |
> |
### RPM external gcc 3.4.5-CMS2 |
2 |
|
## INITENV +PATH LD_LIBRARY_PATH %i/lib/32 |
3 |
|
## INITENV +PATH LD_LIBRARY_PATH %i/lib64 |
4 |
|
## BUILDIF case $(uname):$(uname -p) in Linux:i*86 ) true ;; Linux:x86_64 ) true ;; Linux:ppc64 ) false ;; Darwin:* ) false ;; * ) true ;; esac |
5 |
< |
Source0: ftp://ftp.fu-berlin.de/unix/gnu/%n/%n-%v/%n-%v.tar.bz2 |
5 |
> |
%define realversion %(echo %v | cut -d- -f1 ) |
6 |
> |
Source0: ftp://ftp.fu-berlin.de/unix/gnu/%n/%n-%realversion/%n-%realversion.tar.bz2 |
7 |
|
%define binutilsv 2.17 |
8 |
|
Source1: http://ftp.gnu.org/gnu/binutils/binutils-%binutilsv.tar.bz2 |
9 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
10 |
|
%prep |
11 |
< |
%setup -T -b 0 -n gcc-%v |
11 |
> |
%setup -T -b 0 -n gcc-%realversion |
12 |
|
|
13 |
|
%if "%cmsos" == "slc4_ia32" |
14 |
|
cat << \EOF_CONFIG_GCC >> gcc/config.gcc |
57 |
|
fi |
58 |
|
|
59 |
|
languages=c,c++ |
60 |
< |
if [ "`echo %v | cut -d. -f 1`" == "3" ] |
60 |
> |
if [ "`echo %realversion | cut -d. -f 1`" == "3" ] |
61 |
|
then |
62 |
|
languages=c,c++,f77 |
63 |
|
fi |
90 |
|
make install |
91 |
|
|
92 |
|
# build the native platform compiler |
93 |
< |
cd ../gcc-%v |
93 |
> |
cd ../gcc-%realversion |
94 |
|
export PATH=%i/tmp/binutils/bin:$PATH |
95 |
|
export LD_LIBRARY_PATH=%i/tmp/binutils/lib:$PATH |
96 |
|
buildGCC |