ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/gcc.spec
(Generate patch)

Comparing COMP/CMSDIST/gcc.spec (file contents):
Revision 1.1 by argiro, Fri Jan 13 16:54:03 2006 UTC vs.
Revision 1.13 by ratnik, Wed Apr 18 23:46:01 2007 UTC

# Line 1 | Line 1
1 < ### RPM external gcc 3.2.3
2 < ## BUILDIF [ $(uname) != Darwin ]
3 < Source: ftp://ftp.fu-berlin.de/unix/gnu/%n/%n-%v/%n-%v.tar.gz
4 <
1 > ### RPM external gcc 3.4.5
2 > Requires: gcc-wrapper
3 > ## INITENV +PATH LD_LIBRARY_PATH %i/lib/32
4 > ## INITENV +PATH LD_LIBRARY_PATH %i/lib64
5 > ## BUILDIF case $(uname):$(uname -p) in Linux:i*86 ) true ;; Linux:x86_64 ) true ;;  Linux:ppc64 ) false ;; Darwin:* ) false ;; * ) true ;; esac
6 > Source: ftp://ftp.fu-berlin.de/unix/gnu/%n/%n-%v/%n-%v.tar.bz2
7 > %define cpu %(echo %cmsplatf | cut -d_ -f2)
8   %build
9 + ## IMPORT gcc-wrapper
10   # FIXME: --enable-__cxa_atexit can't be used with gcc 3.2.3 on RH 7.3,
11   # enabling it causes qt's uic to die with segmentation violation half
12   # way down the build of qt (projecsettings.ui or something like that;
# Line 11 | Line 15 | Source: ftp://ftp.fu-berlin.de/unix/gnu/
15   # platform combination.
16   mkdir -p obj
17   cd obj
18 +
19 + if [ "`echo %v | cut -d. -f 1`" == "3" ]
20 + then
21   ../configure --prefix=%i --enable-languages=c,c++,f77 \
22      --enable-shared # --enable-__cxa_atexit
23 < make bootstrap
23 > else
24 > ../configure --prefix=%i --enable-languages=c,c++ \
25 >    --enable-shared # --enable-__cxa_atexit
26 > fi
27 > make %makeprocesses bootstrap
28  
29   %install
30   cd obj && make install
31   ln -s gcc %i/bin/cc
32 + %post
33 + %{relocateConfig}lib/libg2c.la
34 + %{relocateConfig}lib/libstdc++.la
35 + %{relocateConfig}lib/libsupc++.la
36 + %if "%cpu" == "amd64"
37 + %{relocateConfig}lib64/libg2c.la
38 + %{relocateConfig}lib64/libstdc++.la
39 + %{relocateConfig}lib64/libsupc++.la
40 + %{relocateConfig}lib/32/libg2c.la
41 + %{relocateConfig}lib/32/libstdc++.la
42 + %{relocateConfig}lib/32/libsupc++.la
43 + %endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines