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.67 by elmer, Sun Mar 6 21:43:44 2011 UTC vs.
Revision 1.75 by elmer, Mon May 23 16:40:23 2011 UTC

# Line 1 | Line 1
1   ### RPM external gcc 4.6.0
2   ## INITENV +PATH LD_LIBRARY_PATH %i/lib/32
3   ## INITENV +PATH LD_LIBRARY_PATH %i/lib64
4 < %define realversion 4.6-20110226
4 > %define realversion 4.6-20110429
5   #Source0: ftp://ftp.fu-berlin.de/unix/gnu/%n/%n-%realversion/%n-%realversion.tar.bz2
6 < Source0: ftp://ftp.nluug.nl/mirror/languages/gcc/snapshots/%realversion/gcc-%realversion.tar.bz2
7 < # If gcc version >= 4.0.0, we need two additional sources, for gmp and mpfr.
6 > Source0: http://gcc.cybermirror.org/snapshots/%realversion/%n-%realversion.tar.bz2
7 > # For gcc version >= 4.0.0, a number of additional sources are needed.
8   %define gmpVersion 4.3.2
9   %define mpfrVersion 2.4.2
10   %define mpcVersion 0.8.1
# Line 25 | Line 25 | Source5: ftp://gcc.gnu.org/pub/gcc/infra
25   %define use_custom_binutils %(echo %cmsos | sed -e 's|slc[0-9]*_amd64|true|')
26   %if "%use_custom_binutils" == "true"
27   %define bisonVersion 2.4
28 %define binutilsv 2.20.1
28   Source6: http://ftp.gnu.org/gnu/bison/bison-%{bisonVersion}.tar.bz2
29 < Source7: http://ftp.gnu.org/gnu/binutils/binutils-%binutilsv.tar.bz2
29 > %define binutilsv 2.21.51.0.8
30 > #Source7: http://ftp.gnu.org/gnu/binutils/binutils-%binutilsv.tar.bz2
31 > Source7: http://www.kernel.org/pub/linux/devel/binutils/binutils-%binutilsv.tar.bz2
32   %endif
33  
34   # gcc 4.5+ link time optimization support requires libelf to work. However
# Line 133 | Line 134 | esac
134   # Whenever we build custom binutils we also enable the new linker "gold".
135   # We do so only if we are using the new gcc 4.5+
136   if [ "X%use_custom_binutils:%gcc_45plus" = Xtrue:true ] ; then
137 <  CONF_BINUTILS_OPTS="--enable-gold"
137 >  CONF_BINUTILS_OPTS="--enable-gold=default --enable-lto --enable-plugins --enable-threads"
138   fi
139  
140   USER_CXX=$CCOPTS
# Line 159 | Line 160 | then
160    make install
161    export PATH=%i/tmp/bison/bin:$PATH
162    cd ../binutils-%{binutilsv}
163 <  ./configure --prefix=%i ${CONF_BINUTILS_OPTS} \
163 >  # Try to avoid dependency on makeinfo by forcing make not
164 >  # to build the documentation.
165 >  perl -p -i -e 's|SUBDIRS = .*|SUBDIRS =|' bfd/Makefile.in binutils/Makefile.in gas/Makefile.in
166 >  perl -p -i -e 's|all: info|all:|' etc/Makefile.in
167 >  perl -p -i -e 's|TEXINFOS =.*|TEXINFOS =|;s|INFO_DEPS =.*|INFO_DEPS =|' gprof/Makefile.in
168 >  perl -p -i -e 's|man_MANS =.*|man_MANS =|' gprof/Makefile.in
169 >  perl -p -i -e 's|INFO_DEPS =.*|INFO_DEPS =|' ld/Makefile.in
170 >  perl -p -i -e 's|INFOFILES =.*|INFOFILES =|' etc/Makefile.in
171 >  perl -p -i -e 's|DVIFILES =.*|DVIFILES =|' etc/Makefile.in
172 >  perl -p -i -e 's|PDFFILES =.*|PDFFILES =|' etc/Makefile.in
173 >  perl -p -i -e 's|HTMLFILES =.*|HTMLFILES =|' etc/Makefile.in        
174 >
175 >  ./configure --prefix=%i ${CONF_BINUTILS_OPTS} --disable-werror \
176                CC="gcc $CCOPTS" CFLAGS="-I%i/include" \
177                CXXFLAGS="-I%i/include" LDFLAGS="-L%i/lib"
178    make %makeprocesses
# Line 206 | Line 219 | mkdir -p obj
219   cd obj
220   export LD_LIBRARY_PATH=%i/lib64:%i/lib:$LD_LIBRARY_PATH
221   ../configure --prefix=%i \
222 +  --enable-gold=yes --enable-lto  --with-build-config=bootstrap-lto \
223    --enable-languages=c,c++,fortran \
224    $CONF_GCC_VERSION_OPTS --enable-shared CC="gcc $CCOPTS" CXX="c++ $USER_CXX"
225  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines