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

Comparing COMP/CMSDIST/gcc-toolfile.spec (file contents):
Revision 1.1 by eulisse, Wed Jan 2 12:45:55 2008 UTC vs.
Revision 1.5 by elmer, Fri Jan 18 13:42:58 2008 UTC

# Line 1 | Line 1
1 < ### RPM cms gcc-toolfile 1.0
1 > ### RPM cms gcc-toolfile 19.0
2  
3   # gcc has a separate spec file for the generating a
4   # toolfile because gcc.spec could be not build because of the
# Line 14 | Line 14 | if [ "X$GCC_ROOT" = X ]
14   then
15      GCC_PATH=`which gcc` || exit 1
16      GCC_ROOT=`echo $GCC_PATH | sed -e 's|/bin/gcc||'`
17 <    GCC_VERSION=`gcc -v 2>&1 | grep "gcc version" | sed 's|.*\([0-9].[0-9].[0-9]\).*|\1|'` || exit 1
17 >    GCC_VERSION=`gcc -v 2>&1 | grep "gcc version" | sed 's|[^0-9]*\([0-9].[0-9].[0-9]\).*|\1|'` || exit 1
18   fi
19  
20   COMPILER_VERSION=`echo %cmsplatf | sed -e 's|.*gcc\([0-9]*\).*|\1|'`
# Line 286 | Line 286 | osx104_ppc32_gcc40* )
286   cat << \EOF_TOOLFILE >%i/etc/scram.d/cxxcompiler
287   <doc type=BuildSystem::ToolDoc version=1.1>
288   <tool name=cxxcompiler version=@GCC_VERSION@ type=compiler>
289 + <client>
290 + <Environment name=GCC_BASE default="@GCC_ROOT@"></Environment>
291 + <Environment name=GCCBINDIR default="$GCC_BASE/bin"></Environment>
292 + <Environment name=CXX value="$GCCBINDIR/c++"></Environment>
293 + </client>
294 + <Flags SCRAM_COMPILER_NAME="gcc40">
295 + <Flags CCcompiler="gcc40">
296 + <Flags MODULEFLAGS=" ">
297 + <Flags CXXDEBUGFLAG="-g">
298 + <Flags CPPDEFINES="GNU_GCC">
299 + <Flags CPPDEFINES="_GNU_SOURCE">
300 + <Flags CXXSHAREDOBJECTFLAGS="-fPIC">
301 + <Flags CXXFLAGS="-pedantic -ansi -pipe">
302 + <Flags CXXFLAGS="-O2">
303 + <Flags CXXFLAGS="-felide-constructors -fmessage-length=0 -ftemplate-depth-300">
304 + <Flags CXXFLAGS="-Wall -Wno-non-template-friend -Wno-long-long -Wimplicit -Wreturn-type -Wunused -Wparentheses">
305 + <Flags LDFLAGS=" ">
306 + <Flags CXXSHAREDFLAGS="-dynamiclib -single_module">
307 + <Flags SHAREDSUFFIX="dylib">
308 + <Flags SCRAM_LANGUAGE_TYPE="C++">
309 + <Runtime name=DYLD_LIBRARY_PATH value="$GCC_BASE/lib" type=path>
310 + <Runtime name=PATH value="$GCC_BASE/bin" type=path>
311 + </tool>
312 + EOF_TOOLFILE
313 + ;;
314 + osx104_ia32_gcc40* )
315 + cat << \EOF_TOOLFILE >%i/etc/scram.d/cxxcompiler
316 + <doc type=BuildSystem::ToolDoc version=1.1>
317 + <tool name=cxxcompiler version=@GCC_VERSION@ type=compiler>
318   <client>
319   <Environment name=GCC_BASE default="@GCC_ROOT@"></Environment>
320   <Environment name=GCCBINDIR default="$GCC_BASE/bin"></Environment>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines