Revision: | 1.6 |
Committed: | Sat Jan 19 00:53:59 2008 UTC (17 years, 3 months ago) by elmer |
Branch: | MAIN |
CVS Tags: | MotT0_1_0_2, MotT0_1_0_1, MotT0_1_0_0, MotT0_100531_1, MotT0_100528_1, T0Mon_100518_1, T0Mon_100503_1, T0Mon_100316_1, T0Mon_100308_2, T0Mon_100308_1, T0Mon_100216_1, forFrontend-3, T0Mon_100210_1, T0Mon_100204_4, T0Mon_100204_3, T0Mon_100204_1, T0Mon_100127_1, DBS-APP_20100122_slc4, DBS-APP_20100121_slc4, DBS-WEB_20100120_slc4, DBS-APP_20100120_slc4, DBS-APP_20100118_slc4, DBS-WEB_20100118_slc4, DBS-APP_20100114_slc4, DBS-WEB_20100113_slc4, DAS_20091202, FILEMOVER_20091118, DBS-APPS_20090929, pe20091117a-fromDAS_20090709, pe20091116b-fromDAS_20090709, pe20091116a-fromDAS_20090709, T0Mon_091111_1, DAS_20091104, DBS-WEB_20091021, DAS_20091016, DAS_20091014, DBS-WEB_20091012, DBS-WEB_20090921, webconddb173, condapp173, webconddb172, condapp172, pe20090910-fromDAS_20090709, FILEMOVER_20090910, DBS-WEB_20090817, FILEMOVER_20090828, DBS-APPS_20090706, T0Mon_090828_1, T0Mon_090822_1, webconddb171, condapp171, WEBTOOLS_APPS_20090817, DBS-APPS_20090804, DBS-APPS_20090730, DAS_20090709, T0Mon_090715_1, DAS_20090607, DBS-WEB_20090618, webconddb170, condapp170, DBS-APPS_20090619, T0Mon_090612_1, DBS-APPS_20090608, T0Mon_090611_1, T0Mon_090610_1, DBS-APPS_20090604_1, DAS_20090604, DBS-APPS_20090604, DAS_20090603, condapp164b, webconddb164b, DBS-APPS_20090603, T0Mon_090601_1, DBS-APPS_20090528, T0Mon_090527_2, T0Mon_090527_1, webconddb164, conapp164, T0Mon_090522_1, T0Mon_090519_2, T0Mon_090519_1, DBS_APPS_20090518, T0Mon_090517_1, T0Mon_090516_1, T0Mon_090515_4, T0Mon_090515_3, T0Mon_090515_2, T0Mon_090515_1, DAS_20090514_3, DAS_20090514_2, DAS_20090514_1, DAS_20090514, DBS-WEB_20090512, T0Mon_090510_1, DBS-WEB_20090507, zx20090506, DBS_APPS_20090504, DBS_APPS_20090501, DBS-APPS_20090429_2, DBS-WEB_20090429, DBS-APPS_20090429, DBS-WEB_20090428, forPHEDEX-web-services-20090423, DBS-WEB_20090422, DBS-WEB_20090420, DBS-APPS_20090417, DBS-APPS_20090415, DBS-APPS_20090410, DAS_20090408, DBS-APPS_20090406, T0Mon_090406_1, forPHEDEX-web-services-20090406, DAS_20090330, DBS-APPS_20090326, T0Mon_090326_1, T0Mon_090325_1, DAS_20090319_1, DAS_20090319, DBS-APPS_20090318, T0Mon_090318_1, DBS-APPS_20090316, DAS_20090316, T0Mon_090315_1, DAS_20090313, COUCHDB_20090313, forPHEDEX313a, DBS-APPS_20090310, WEBTOOLS-APPS_20090310_1, WEBTOOLS-APPS_20090310, WEBTOOLS-APPS_20090309, DBS-APPS_20090306, DBS-APPS_20090304_1, DBS-APPS_20090304, DBS-APPS_20090303_1, DBS-APPS_20090303, T0Mon_090303_1, DBS-APPS_20090302, zx20090224, DBS-APPS_20090220_1, DBS-APPS_20090220, T0M_0_0_5, MEMCACHED_20090219_1, MEMCACHED_20090219, zx20090219, forPHEDEX313, WEBTOOLS-APPS_20090217_1, WEBTOOLS-APPS_20090217, WEBTOOLS-APPS_20090216, zx20090217, forPHEDEX-web-services-20090216, zx20090216, WEBTOOLS-APPS_20090212, WEBTOOLS-APPS_20090209_64bit, zx20090209, forPHEDEX312, WEBTOOLS-APPS_20090206, T0M_0_0_4, T0M_0_0_3, WEBTOOLS-APPS_20090203_1, WEBTOOLS-APPS_20090203, T0M_0_0_2, zx20090201, WEBTOOLS-APPS_20090130, WEBTOOLS-APPS_20090129, PRODAGENT_0_12_10_pre3, PRODAGENT_0_12_10_pre2_20090127_V2, PRODAGENT_0_12_10_20090122, PRODAGENT_0_12_10_pre1_MISC, sw_20090115a, sw_20090115, zx20090115, zx20090114, WEBTOOLS-APPS_20090113, DBS-APPS_20090109, DBS-APPS_20090108, sw_20090108, WEBTOOLS-APPS_20090108, DBS-APPS_20090106, DBS-APPS_20090105, FMWS_20090103, FMWS_20081224_1, FMWS_20081224, FMWS_20081222_3, FMWS_20081222_2, FMWS_20081222, DBS-APPS_20081218, FMWS_20081212_1, FMWS_20081212, FMWS_20081211, DBS-APPS_20081211, forPHEDEX311, DBS-APPS_20081210, forPHEDEX310, DBS-APPS_20081209, WEBTOOLS-APPS_20081208, forPHEDEX310pre2, DBS-APPS_20081205, forPHEDEX-web-services-20081205, DBS-APPS_20081204, DBS-APPS_200811204, forPHEDEX310pre1, DBS-APPS_20081126_1, DBS-APPS_20081126, DBS-APPS_20081125, ofctest, testofc, DBS-APPS_20081119, DBS-APPS_20081118, DBS-APPS_20081117, DBS-APPS_20081114_1, DBS-APPS_20081114, DBS-APPS_20081112, DBS-APPS_20081111_1, DBS-APPS_20081110_2, DBS-APPS_20081110_1, WEBTOOLS-APPS_20081110, DBS-APPS_20081110, WEBTOOLS-APPS_20081107_1, WEBTOOLS-APPS_20081107, DBS-APPS_20081107, T0Mon_081107_1, DBS-APPS_20081105, T0Mon_081105_1, DBS-APPS_20081104, WEBTOOLS-APPS_20081031_2, DBS-APPS_20081031_2, DBS-APPS_20081031_1, WEBTOOLS-APPS_20081031_1, WEBTOOLS-APPS_20081031, forPHEDEX307, DBS-APPS_20081024, WEBTOOLS-APPS_20081020_1, WEBTOOLS-APPS_20081020, forFrontend-2, WEBTOOLS-APPS_20081016_2, WEBTOOLS-APPS_20081016_1, WEBTOOLS-APPS_20081016, WEBTOOLS-APPS_20081015, WEBTOOLS-APPS_20081013_1, WEBTOOLS-APPS_20081013, WEBTOOLS-APPS_20081009, WEBTOOLS-APPS_20081008_1, WEBTOOLS-APPS_20081008, forPHEDEX-web-services-20081008, forPHEDEX-web-services-20081007, forPHEDEX-web302_test1, PRODAGENT_0_12_2, forPHEDEX306, forPHEDEX-datasvc120_test1, T0Mon_080926_1, WEBTOOLS-APPS_20080922, T0Mon_080920_2, T0Mon_080920_1, T0Mon_080916_2, forFrontend-1, WEBTOOLS-APPS_20080917, WEBTOOLS-APPS_20080916, WEBTOOLS-APPS_20080915, forPHEDEX305, DBS-APPS_20080910_1, WEBTOOLS-APPS_20080910_1, WEBTOOLS-APPS_20080910, DBS-APPS_20080910, WEBTOOLS-APPS_20080909, DBS-APPS_20080908, T0Mon_080905_1, T0Mon_080905_01, WEBTOOLS-APPS_20080903, T0Mon_080902_2, T0Mon_080902_1, WEBTOOLS-APPS_20080826, zx20080825, T0Mon_080824_1, T0Mon_080823_1, WEBTOOLS-APPS_20080822, WEBTOOLS-APPS_20080821, WEBTOOLS-APPS_20080818_1, WEBTOOLS-APPS_20080818, buildset_V2_8, forPHEDEX-web301, WEBTOOLS-APPS_20080725, WEBTOOLS-APPS_20080724, re-deps-20080722, zx20080718, WEBTOOLS-APPS_20080717, WEBTOOLS-APPS_20080716, WEBTOOLS-APPS_20080715_2, WEBTOOLS-APPS_20080715_1, WEBTOOLS-APPS_20080715, zx20080715, nr080714_forCRAB, WEBTOOLS-APPS_20080713, forPHEDEX304, zx20080707, forPHEDEX-datasvc110, forPHEDEX-web300, forPHEDEX-web110, re20080627, zx20080625, WEBTOOLS-APPS_20080624, WEBTOOLS-APPS_20080619_1, WEBTOOLS-APPS_20080619, WEBTOOLS-APPS_20080617, zx20080611, WEBTOOLS-APPS_20080611, zx20080610, WEBTOOLS-APPS_20080609_1, WEBTOOLS-APPS_20080609, zx20080609, sw_20080509, SiteDB_030608_1, SiteDB_300508_1, SiteDB_280508_1, WEBTOOLS-APPS_20080527_2, WEBTOOLS-APPS_20080527, WEBTOOLS-APPS_20080523, WEBTOOLS-APPS_20080522, WEBTOOLS-APPS_20080521, WEBTOOLS-APPS_20080520, WEBTOOLS-APPS_20080519, zx20080519, WEBTOOLS-APPS_20080511, zx20080509b, zx20080509, pe20080508-testcvs, WEBTOOLS-APPS_20080507_1, WEBTOOLS-APPS_20080507, WEBTOOLS-APPS_20080506, dl080505, WEBTOOLS-APPS_20080501, zx20080430, dl080425_for21x, WEBTOOLS-APPS_20080422, WEBTOOLS-APPS_20080416, zx20080415-comp, webconddb_1_1_1, WEBTOOLS-APPS_20080414, WEBTOOLS-APPS_20080412, WEBTOOLS-APPS_20080411_1, WEBTOOLS-APPS_20080411, WEBTOOLS-APPS_20080410, WEBTOOLS-APPS_20080409_1, WEBTOOLS-APPS_20080409, WEBTOOLS-APPS_20080408_1, WEBTOOLS-APPS_20080408, DBS-APPS_20080407, WEBTOOLS-APPS_20080407, WEBTOOLS-APPS_20080404_2, WEBTOOLS-APPS_20080404_1, WEBTOOLS-APPS_20080404, WEBTOOLS-APPS_20080403_4, WEBTOOLS-APPS_20080403_3, WEBTOOLS-APPS_20080403_2, WEBTOOLS-APPS_20080403_1, WEBTOOLS-APPS_20080403, WEBTOOLS-APPS_20080328, WEBTOOLS-APPS_20080327_1, WEBTOOLS-APPS_20080327, WEBTOOLS-APPS_20080326_6, WEBTOOLS-APPS_20080326_5, WEBTOOLS-APPS_20080326_4, WEBTOOLS-APPS_20080326_3, WEBTOOLS-APPS_20080326_2, WEBTOOLS-APPS_20080326, DBSweb_260308_1, DBSweb_260308, forPHEDEX262_cmsbuild3, sw_20080319, sw20080319, DBSweb_180308_2, DBSweb_180308_1, DBSweb_180308, DBSweb_170308_8, DBSweb_170308_7, DBSweb_170308_6, DBSweb_170308_5, DBSweb_170308_4, DBSweb_170308_3, DBSweb_170308_2, DBSweb_170308, SiteDB_170308, SiteDB_1_2_1-160308_2, SiteDB_1_2_1-160308, SM_150308_DBSDisc_9, SM_150308_DBSDisc_8, SM_150308_DBSDisc_7, SM_150308_DBSDisc_6, SM_150308_DBSDisc_5, SM_150308_DBSDisc_4, SM_150308_DBSDisc_3, SM_150308_DBSDisc_2, SM_150308_DBSDisc_1, SM_150308_DBSDisc, SiteDB_140308, SiteDB_130308, ge20080304-comp, pe20080229-ports, SiteDB_080227, ge20080226, pe20080221a-ports-412, pe20080220a-ports-412, SiteDB_SM_Nightly_150208, pe20080214a-ports-for190p9-412, pe20080211a-ports-for190p9-412, pe20080207c-ports-for190p8-412, pe20080207b-ports-lcg54pre2-412, pe20080207a-ports-lcg54pre2-412, pe20080206b-ports-lcg54pre2-412, pe20080206a-ports-lcg54pre2-412, pe20080205c-ports-lcg54pre2-412, pe20080205b-ports-lcg54pre2-412, pe20080205a-ports-lcg54pre2-412, pe20080204a-ports-lcg54pre2-412, pe20080127a-ports-lcg54pre2-412, pe20080125a-ports-lcg54pre2-412, pe20080125a-ports-lcg54-412, pe20080123a-ports-412, pe20080120a-ports-412, pe20080119a-ports-412, pe20080118g-ports-412 |
Branch point for: | conddb-branch |
Changes since 1.5: | +1 -1 lines |
Log Message: | Update to 4.1.2-CMS19 |
# | User | Rev | Content |
---|---|---|---|
1 | elmer | 1.6 | ### RPM cms gcc-toolfile 4.1.2-CMS19 |
2 | eulisse | 1.1 | |
3 | # gcc has a separate spec file for the generating a | ||
4 | # toolfile because gcc.spec could be not build because of the | ||
5 | # "--use-system-compiler" option. | ||
6 | |||
7 | Source: none | ||
8 | |||
9 | %prep | ||
10 | %build | ||
11 | %install | ||
12 | mkdir -p %i/etc/scram.d | ||
13 | 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 | eulisse | 1.3 | GCC_VERSION=`gcc -v 2>&1 | grep "gcc version" | sed 's|[^0-9]*\([0-9].[0-9].[0-9]\).*|\1|'` || exit 1 |
18 | eulisse | 1.1 | fi |
19 | |||
20 | COMPILER_VERSION=`echo %cmsplatf | sed -e 's|.*gcc\([0-9]*\).*|\1|'` | ||
21 | COMPILER_VERSION_MAJOR=`echo %cmsplatf | sed -e 's|.*gcc\([0-9]\).*|\1|'` | ||
22 | |||
23 | case %cmsplatf in | ||
24 | slc3* ) | ||
25 | cat << \EOF_TOOLFILE >%i/etc/scram.d/cxxcompiler | ||
26 | <doc type=BuildSystem::ToolDoc version=1.1> | ||
27 | <tool name=cxxcompiler version=@GCC_VERSION@ type=compiler> | ||
28 | <client> | ||
29 | <Environment name=GCC_BASE default="@GCC_ROOT@"></Environment> | ||
30 | <Environment name=GCCBINDIR default="$GCC_BASE/bin"></Environment> | ||
31 | <Environment name=CXX value="$GCCBINDIR/c++"></Environment> | ||
32 | </client> | ||
33 | <Flags SCRAM_COMPILER_NAME="gcc@COMPILER_VERSION@"> | ||
34 | <Flags CCcompiler="gcc@COMPILER_VERSION_MAJOR@"> | ||
35 | <Flags MODULEFLAGS="-shared"> | ||
36 | <Flags CXXDEBUGFLAG="-g"> | ||
37 | <Flags CPPDEFINES="GNU_GCC"> | ||
38 | <Flags CPPDEFINES="_GNU_SOURCE"> | ||
39 | <Flags CXXSHAREDOBJECTFLAGS="-fPIC"> | ||
40 | <Flags CXXFLAGS="-pedantic -ansi -pthread -pipe"> | ||
41 | <Flags CXXFLAGS="-O2"> | ||
42 | <Flags CXXFLAGS="-felide-constructors -fmessage-length=0 -ftemplate-depth-300"> | ||
43 | <Flags CXXFLAGS="-Wall -Wno-non-template-friend -Wno-long-long -Wimplicit -Wreturn-type -Wunused -Wparentheses"> | ||
44 | <Flags LDFLAGS="-Wl,-E"> | ||
45 | <Flags CXXSHAREDFLAGS="-Wl,-E"> | ||
46 | <Flags SHAREDSUFFIX="so"> | ||
47 | <Flags SCRAM_LANGUAGE_TYPE="C++"> | ||
48 | <Runtime name=GCC_EXEC_PREFIX default="$GCC_BASE/lib/gcc-lib/"> | ||
49 | <Runtime name=LD_LIBRARY_PATH value="$GCC_BASE/lib" type=path> | ||
50 | <Runtime name=PATH value="$GCC_BASE/bin" type=path> | ||
51 | </tool> | ||
52 | EOF_TOOLFILE | ||
53 | cat << \EOF_TOOLFILE >%i/etc/scram.d/ccompiler | ||
54 | <doc type=BuildSystem::ToolDoc version=1.1> | ||
55 | <tool name=ccompiler version=@GCC_VERSION@ type=compiler> | ||
56 | <client> | ||
57 | <Environment name=GCC_BASE default="@GCC_ROOT@"></Environment> | ||
58 | <Environment name=GCCBINDIR value="$GCC_BASE/bin"></Environment> | ||
59 | <Environment name=CC value="$GCCBINDIR/gcc"></Environment> | ||
60 | </client> | ||
61 | <Flags CDEBUGFLAG="-g"> | ||
62 | <Flags CSHAREDOBJECTFLAGS="-fPIC"> | ||
63 | <Flags CFLAGS="-pthread"> | ||
64 | <Flags CFLAGS="-O2"> | ||
65 | <Flags LDFLAGS="-Wl,-E"> | ||
66 | <Flags CSHAREDFLAGS="-Wl,-E"> | ||
67 | <Flags SCRAM_COMPILER_NAME="gcc@COMPILER_VERSION@"> | ||
68 | <Flags SCRAM_LANGUAGE_TYPE="C"> | ||
69 | </tool> | ||
70 | EOF_TOOLFILE | ||
71 | cat << \EOF_TOOLFILE >%i/etc/scram.d/f77compiler | ||
72 | <doc type=BuildSystem::ToolDoc version=1.1> | ||
73 | <tool name=f77compiler version=@GCC_VERSION@ type=compiler> | ||
74 | <lib name=g2c> | ||
75 | <lib name=m> | ||
76 | <client> | ||
77 | <Environment name=G77_BASE default="@GCC_ROOT@"></Environment> | ||
78 | <Environment name=FC default="$G77_BASE/bin/g77"></Environment> | ||
79 | </client> | ||
80 | <Flags SCRAM_COMPILER_NAME="gcc@COMPILER_VERSION@"> | ||
81 | <Flags FFLAGS="-fno-second-underscore -Wno-globals -Wunused -Wuninitialized"> | ||
82 | <Flags FCO2Flag="-O2"> | ||
83 | <Flags FCOPTIMISED="-O2"> | ||
84 | <Flags FCDEBUGFLAG="-g"> | ||
85 | <Flags FCSHAREDOBJECTFLAGS="-fPIC"> | ||
86 | <Flags SCRAM_LANGUAGE_TYPE="FORTRAN"> | ||
87 | </tool> | ||
88 | EOF_TOOLFILE | ||
89 | ;; | ||
90 | slc4_ia32_gcc345 ) | ||
91 | cat << \EOF_TOOLFILE >%i/etc/scram.d/cxxcompiler | ||
92 | <doc type=BuildSystem::ToolDoc version=1.1> | ||
93 | <tool name=cxxcompiler version=@GCC_VERSION@ type=compiler> | ||
94 | <client> | ||
95 | <Environment name=GCC_BASE default="@GCC_ROOT@"></Environment> | ||
96 | <Environment name=GCCBINDIR default="$GCC_BASE/bin"></Environment> | ||
97 | <Environment name=CXX value="$GCCBINDIR/c++"></Environment> | ||
98 | </client> | ||
99 | <Flags SCRAM_COMPILER_NAME="gcc@COMPILER_VERSION@"> | ||
100 | <Flags CCcompiler="gcc@COMPILER_VERSION_MAJOR@"> | ||
101 | <Flags MODULEFLAGS="-shared"> | ||
102 | <Flags CXXDEBUGFLAG="-g"> | ||
103 | <Flags CPPDEFINES="GNU_GCC"> | ||
104 | <Flags CPPDEFINES="_GNU_SOURCE"> | ||
105 | <Flags CXXSHAREDOBJECTFLAGS="-fPIC"> | ||
106 | <Flags CXXFLAGS="-pedantic -ansi -pthread -pipe"> | ||
107 | <Flags CXXFLAGS="-O2"> | ||
108 | <Flags CXXFLAGS="-felide-constructors -fmessage-length=0 -ftemplate-depth-300"> | ||
109 | <Flags CXXFLAGS="-Wall -Wno-non-template-friend -Wno-long-long -Wimplicit -Wreturn-type -Wunused -Wparentheses"> | ||
110 | <Flags LDFLAGS="-Wl,-E"> | ||
111 | <Flags CXXSHAREDFLAGS="-Wl,-E"> | ||
112 | <Flags SHAREDSUFFIX="so"> | ||
113 | <Flags SCRAM_LANGUAGE_TYPE="C++"> | ||
114 | <Runtime name=LD_LIBRARY_PATH value="$GCC_BASE/lib" type=path> | ||
115 | <Runtime name=PATH value="$GCC_BASE/bin" type=path> | ||
116 | </tool> | ||
117 | EOF_TOOLFILE | ||
118 | cat << \EOF_TOOLFILE >%i/etc/scram.d/ccompiler | ||
119 | <doc type=BuildSystem::ToolDoc version=1.1> | ||
120 | <tool name=ccompiler version=@GCC_VERSION@ type=compiler> | ||
121 | <client> | ||
122 | <Environment name=GCC_BASE default="@GCC_ROOT@"></Environment> | ||
123 | <Environment name=GCCBINDIR value="$GCC_BASE/bin"></Environment> | ||
124 | <Environment name=CC value="$GCCBINDIR/gcc"></Environment> | ||
125 | </client> | ||
126 | <Flags CDEBUGFLAG="-g"> | ||
127 | <Flags CSHAREDOBJECTFLAGS="-fPIC"> | ||
128 | <Flags CFLAGS="-pthread"> | ||
129 | <Flags CFLAGS="-O2"> | ||
130 | <Flags LDFLAGS="-Wl,-E"> | ||
131 | <Flags CSHAREDFLAGS="-Wl,-E"> | ||
132 | <Flags SCRAM_COMPILER_NAME="gcc@COMPILER_VERSION@"> | ||
133 | <Flags SCRAM_LANGUAGE_TYPE="C"> | ||
134 | </tool> | ||
135 | EOF_TOOLFILE | ||
136 | cat << \EOF_TOOLFILE >%i/etc/scram.d/f77compiler | ||
137 | <doc type=BuildSystem::ToolDoc version=1.1> | ||
138 | <tool name=f77compiler version=@GCC_VERSION@ type=compiler> | ||
139 | <lib name=g2c> | ||
140 | <lib name=m> | ||
141 | <client> | ||
142 | <Environment name=G77_BASE default="@GCC_ROOT@"></Environment> | ||
143 | <Environment name=FC default="$G77_BASE/bin/g77"></Environment> | ||
144 | </client> | ||
145 | <Flags SCRAM_COMPILER_NAME="gcc@COMPILER_VERSION@"> | ||
146 | <Flags FFLAGS="-fno-second-underscore -Wno-globals -Wunused -Wuninitialized"> | ||
147 | <Flags FCO2Flag="-O2"> | ||
148 | <Flags FCOPTIMISED="-O2"> | ||
149 | <Flags FCDEBUGFLAG="-g"> | ||
150 | <Flags FCSHAREDOBJECTFLAGS="-fPIC"> | ||
151 | <Flags SCRAM_LANGUAGE_TYPE="FORTRAN"> | ||
152 | </tool> | ||
153 | EOF_TOOLFILE | ||
154 | ;; | ||
155 | slc4_ia32_gcc4* ) | ||
156 | cat << \EOF_TOOLFILE >%i/etc/scram.d/cxxcompiler | ||
157 | <doc type=BuildSystem::ToolDoc version=1.1> | ||
158 | <tool name=cxxcompiler version=@GCC_VERSION@ type=compiler> | ||
159 | <client> | ||
160 | <Environment name=GCC_BASE default="@GCC_ROOT@"></Environment> | ||
161 | <Environment name=GCCBINDIR default="$GCC_BASE/bin"></Environment> | ||
162 | <Environment name=CXX value="$GCCBINDIR/c++"></Environment> | ||
163 | </client> | ||
164 | <Flags SCRAM_COMPILER_NAME="gcc@COMPILER_VERSION@"> | ||
165 | <Flags CCcompiler="gcc@COMPILER_VERSION_MAJOR@"> | ||
166 | <Flags MODULEFLAGS="-shared"> | ||
167 | <Flags CXXDEBUGFLAG="-g"> | ||
168 | <Flags CPPDEFINES="GNU_GCC"> | ||
169 | <Flags CPPDEFINES="_GNU_SOURCE"> | ||
170 | <Flags CXXSHAREDOBJECTFLAGS="-fPIC"> | ||
171 | <Flags CXXFLAGS="-pedantic -ansi -pthread -pipe"> | ||
172 | <Flags CXXFLAGS="-O2"> | ||
173 | <Flags CXXFLAGS="-felide-constructors -fmessage-length=0 -ftemplate-depth-300"> | ||
174 | <Flags CXXFLAGS="-Wall -Wno-non-template-friend -Wno-long-long -Wimplicit -Wreturn-type -Wunused -Wparentheses"> | ||
175 | <Flags LDFLAGS="-Wl,-E"> | ||
176 | <Flags CXXSHAREDFLAGS="-Wl,-E"> | ||
177 | <Flags SHAREDSUFFIX="so"> | ||
178 | <Flags SCRAM_LANGUAGE_TYPE="C++"> | ||
179 | <Runtime name=LD_LIBRARY_PATH value="$GCC_BASE/lib" type=path> | ||
180 | <Runtime name=PATH value="$GCC_BASE/bin" type=path> | ||
181 | </tool> | ||
182 | EOF_TOOLFILE | ||
183 | cat << \EOF_TOOLFILE >%i/etc/scram.d/ccompiler | ||
184 | <doc type=BuildSystem::ToolDoc version=1.1> | ||
185 | <tool name=ccompiler version=@GCC_VERSION@ type=compiler> | ||
186 | <client> | ||
187 | <Environment name=GCC_BASE default="@GCC_ROOT@"></Environment> | ||
188 | <Environment name=GCCBINDIR value="$GCC_BASE/bin"></Environment> | ||
189 | <Environment name=CC value="$GCCBINDIR/gcc"></Environment> | ||
190 | </client> | ||
191 | <Flags CDEBUGFLAG="-g"> | ||
192 | <Flags CSHAREDOBJECTFLAGS="-fPIC"> | ||
193 | <Flags CFLAGS="-pthread"> | ||
194 | <Flags CFLAGS="-O2"> | ||
195 | <Flags LDFLAGS="-Wl,-E"> | ||
196 | <Flags CSHAREDFLAGS="-Wl,-E"> | ||
197 | <Flags SCRAM_COMPILER_NAME="gcc@COMPILER_VERSION@"> | ||
198 | <Flags SCRAM_LANGUAGE_TYPE="C"> | ||
199 | </tool> | ||
200 | EOF_TOOLFILE | ||
201 | cat << \EOF_TOOLFILE >%i/etc/scram.d/f77compiler | ||
202 | <doc type=BuildSystem::ToolDoc version=1.1> | ||
203 | <tool name=f77compiler version=@GCC_VERSION@ type=compiler> | ||
204 | <lib name=gfortran> | ||
205 | <lib name=m> | ||
206 | <client> | ||
207 | <Environment name=G77_BASE default="@GCC_ROOT@"></Environment> | ||
208 | <Environment name=FC default="$G77_BASE/bin/gfortran"></Environment> | ||
209 | </client> | ||
210 | <Flags SCRAM_COMPILER_NAME="gcc@COMPILER_VERSION@"> | ||
211 | <Flags FFLAGS="-fno-second-underscore -Wunused -Wuninitialized"> | ||
212 | <Flags FCO2Flag="-O2"> | ||
213 | <Flags FCOPTIMISED="-O2"> | ||
214 | <Flags FCDEBUGFLAG="-g"> | ||
215 | <Flags FCSHAREDOBJECTFLAGS="-fPIC"> | ||
216 | <Flags SCRAM_LANGUAGE_TYPE="FORTRAN"> | ||
217 | </tool> | ||
218 | EOF_TOOLFILE | ||
219 | ;; | ||
220 | slc4_amd64_* ) | ||
221 | cat << \EOF_TOOLFILE >%i/etc/scram.d/cxxcompiler | ||
222 | <doc type=BuildSystem::ToolDoc version=1.1> | ||
223 | <tool name=cxxcompiler version=@GCC_VERSION@ type=compiler> | ||
224 | <client> | ||
225 | <Environment name=GCC_BASE default="@GCC_ROOT@"></Environment> | ||
226 | <Environment name=GCCBINDIR default="$GCC_BASE/bin"></Environment> | ||
227 | <Environment name=CXX value="$GCCBINDIR/c++"></Environment> | ||
228 | </client> | ||
229 | <Flags SCRAM_COMPILER_NAME="gcc@COMPILER_VERSION@"> | ||
230 | <Flags CCcompiler="gcc@COMPILER_VERSION_MAJOR@"> | ||
231 | <Flags MODULEFLAGS="-shared"> | ||
232 | <Flags CXXDEBUGFLAG="-g"> | ||
233 | <Flags CPPDEFINES="GNU_GCC"> | ||
234 | <Flags CPPDEFINES="_GNU_SOURCE"> | ||
235 | <Flags CXXSHAREDOBJECTFLAGS="-fPIC"> | ||
236 | <Flags CXXFLAGS="-pedantic -ansi -pthread -pipe"> | ||
237 | <Flags CXXFLAGS="-O2"> | ||
238 | <Flags CXXFLAGS="-felide-constructors -fmessage-length=0 -ftemplate-depth-300"> | ||
239 | <Flags CXXFLAGS="-Wall -Wno-non-template-friend -Wno-long-long -Wimplicit -Wreturn-type -Wunused -Wparentheses"> | ||
240 | <Flags LDFLAGS="-Wl,-E"> | ||
241 | <Flags CXXSHAREDFLAGS="-Wl,-E"> | ||
242 | <Flags SHAREDSUFFIX="so"> | ||
243 | <Flags SCRAM_LANGUAGE_TYPE="C++"> | ||
244 | <Runtime name=LD_LIBRARY_PATH value="$GCC_BASE/lib64" type=path> | ||
245 | <Runtime name=PATH value="$GCC_BASE/bin" type=path> | ||
246 | </tool> | ||
247 | EOF_TOOLFILE | ||
248 | cat << \EOF_TOOLFILE >%i/etc/scram.d/ccompiler | ||
249 | <doc type=BuildSystem::ToolDoc version=1.1> | ||
250 | <tool name=ccompiler version=@GCC_VERSION@ type=compiler> | ||
251 | <client> | ||
252 | <Environment name=GCC_BASE default="@GCC_ROOT@"></Environment> | ||
253 | <Environment name=GCCBINDIR value="$GCC_BASE/bin"></Environment> | ||
254 | <Environment name=CC value="$GCCBINDIR/gcc"></Environment> | ||
255 | </client> | ||
256 | <Flags CDEBUGFLAG="-g"> | ||
257 | <Flags CSHAREDOBJECTFLAGS="-fPIC"> | ||
258 | <Flags CFLAGS="-pthread"> | ||
259 | <Flags CFLAGS="-O2"> | ||
260 | <Flags LDFLAGS="-Wl,-E"> | ||
261 | <Flags CSHAREDFLAGS="-Wl,-E"> | ||
262 | <Flags SCRAM_COMPILER_NAME="gcc@COMPILER_VERSION@"> | ||
263 | <Flags SCRAM_LANGUAGE_TYPE="C"> | ||
264 | </tool> | ||
265 | EOF_TOOLFILE | ||
266 | cat << \EOF_TOOLFILE >%i/etc/scram.d/f77compiler | ||
267 | <doc type=BuildSystem::ToolDoc version=1.1> | ||
268 | <tool name=f77compiler version=@GCC_VERSION@ type=compiler> | ||
269 | <lib name=g2c> | ||
270 | <lib name=m> | ||
271 | <client> | ||
272 | <Environment name=G77_BASE default="@GCC_ROOT@"></Environment> | ||
273 | <Environment name=FC default="$G77_BASE/bin/g77"></Environment> | ||
274 | </client> | ||
275 | <Flags SCRAM_COMPILER_NAME="gcc@COMPILER_VERSION@"> | ||
276 | <Flags FFLAGS="-fno-second-underscore -Wno-globals -Wunused -Wuninitialized"> | ||
277 | <Flags FCO2Flag="-O2"> | ||
278 | <Flags FCOPTIMISED="-O2"> | ||
279 | <Flags FCDEBUGFLAG="-g"> | ||
280 | <Flags FCSHAREDOBJECTFLAGS="-fPIC"> | ||
281 | <Flags SCRAM_LANGUAGE_TYPE="FORTRAN"> | ||
282 | </tool> | ||
283 | EOF_TOOLFILE | ||
284 | ;; | ||
285 | 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 | elmer | 1.2 | 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> | ||
321 | <Environment name=CXX value="$GCCBINDIR/c++"></Environment> | ||
322 | </client> | ||
323 | <Flags SCRAM_COMPILER_NAME="gcc40"> | ||
324 | <Flags CCcompiler="gcc40"> | ||
325 | <Flags MODULEFLAGS=" "> | ||
326 | <Flags CXXDEBUGFLAG="-g"> | ||
327 | <Flags CPPDEFINES="GNU_GCC"> | ||
328 | <Flags CPPDEFINES="_GNU_SOURCE"> | ||
329 | <Flags CXXSHAREDOBJECTFLAGS="-fPIC"> | ||
330 | <Flags CXXFLAGS="-pedantic -ansi -pipe"> | ||
331 | <Flags CXXFLAGS="-O2"> | ||
332 | <Flags CXXFLAGS="-felide-constructors -fmessage-length=0 -ftemplate-depth-300"> | ||
333 | <Flags CXXFLAGS="-Wall -Wno-non-template-friend -Wno-long-long -Wimplicit -Wreturn-type -Wunused -Wparentheses"> | ||
334 | <Flags LDFLAGS=" "> | ||
335 | <Flags CXXSHAREDFLAGS="-dynamiclib -single_module"> | ||
336 | <Flags SHAREDSUFFIX="dylib"> | ||
337 | <Flags SCRAM_LANGUAGE_TYPE="C++"> | ||
338 | <Runtime name=DYLD_LIBRARY_PATH value="$GCC_BASE/lib" type=path> | ||
339 | <Runtime name=PATH value="$GCC_BASE/bin" type=path> | ||
340 | </tool> | ||
341 | EOF_TOOLFILE | ||
342 | ;; | ||
343 | eulisse | 1.1 | osx105* ) |
344 | cat << \EOF_TOOLFILE >%i/etc/scram.d/cxxcompiler | ||
345 | <doc type=BuildSystem::ToolDoc version=1.1> | ||
346 | <tool name=cxxcompiler version=@GCC_VERSION@ type=compiler> | ||
347 | <client> | ||
348 | <Environment name=GCC_BASE default="@GCC_ROOT@"></Environment> | ||
349 | <Environment name=GCCBINDIR default="$GCC_BASE/bin"></Environment> | ||
350 | <Environment name=CXX value="$GCCBINDIR/c++"></Environment> | ||
351 | </client> | ||
352 | <Flags SCRAM_COMPILER_NAME="gcc40"> | ||
353 | <Flags CCcompiler="gcc40"> | ||
354 | <Flags MODULEFLAGS=" "> | ||
355 | <Flags CXXDEBUGFLAG="-g"> | ||
356 | <Flags CPPDEFINES="GNU_GCC"> | ||
357 | <Flags CPPDEFINES="_GNU_SOURCE"> | ||
358 | <Flags CXXSHAREDOBJECTFLAGS="-fPIC"> | ||
359 | <Flags CXXFLAGS="-pedantic -ansi -pipe"> | ||
360 | <Flags CXXFLAGS="-O2"> | ||
361 | <Flags CXXFLAGS="-felide-constructors -fmessage-length=0 -ftemplate-depth-300"> | ||
362 | <Flags CXXFLAGS="-Wall -Wno-non-template-friend -Wno-long-long -Wimplicit -Wreturn-type -Wunused -Wparentheses"> | ||
363 | <Flags LDFLAGS=" "> | ||
364 | <Flags CXXSHAREDFLAGS="-dynamiclib -single_module"> | ||
365 | <Flags SHAREDSUFFIX="dylib"> | ||
366 | <Flags SCRAM_LANGUAGE_TYPE="C++"> | ||
367 | <Runtime name=DYLD_LIBRARY_PATH value="$GCC_BASE/lib" type=path> | ||
368 | <Runtime name=PATH value="$GCC_BASE/bin" type=path> | ||
369 | </tool> | ||
370 | EOF_TOOLFILE | ||
371 | ;; | ||
372 | esac | ||
373 | |||
374 | perl -p -i -e "s|\@GCC_ROOT\@|$GCC_ROOT|g; | ||
375 | s|\@GCC_VERSION\@|$GCC_VERSION|g; | ||
376 | s|\@COMPILER_VERSION\@|$COMPILER_VERSION|g; | ||
377 | s|\@COMPILER_VERSION_MAJOR\@|$COMPILER_VERSION_MAJOR|g; | ||
378 | " %i/etc/scram.d/cxxcompiler \ | ||
379 | %i/etc/scram.d/ccompiler \ | ||
380 | %i/etc/scram.d/f77compiler | ||
381 | %post | ||
382 | %{relocateConfig}etc/scram.d/cxxcompiler | ||
383 | %{relocateConfig}etc/scram.d/ccompiler | ||
384 | %{relocateConfig}etc/scram.d/f77compiler |