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.2 by eulisse, Mon Feb 27 14:54:19 2006 UTC vs.
Revision 1.11 by eulisse, Tue Feb 6 23:14:04 2007 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines