1 |
< |
### RPM external gcc 4.1.2-CMS8 |
1 |
> |
### RPM external gcc 4.3.4 |
2 |
> |
## BUILDIF case `uname`:`uname -p` in Linux:i*86 ) true ;; Linux:x86_64 ) true ;; Linux:ppc64 ) false ;; Darwin:* ) false ;; * ) true ;; esac |
3 |
|
## INITENV +PATH LD_LIBRARY_PATH %i/lib/32 |
4 |
|
## INITENV +PATH LD_LIBRARY_PATH %i/lib64 |
4 |
– |
## BUILDIF case $(uname):$(uname -p) in Linux:i*86 ) true ;; Linux:x86_64 ) true ;; Linux:ppc64 ) false ;; Darwin:* ) false ;; * ) true ;; esac |
5 |
|
Source0: ftp://ftp.fu-berlin.de/unix/gnu/%n/%n-%realversion/%n-%realversion.tar.bz2 |
6 |
< |
%define binutilsv 2.17 |
7 |
< |
Source1: http://ftp.gnu.org/gnu/binutils/binutils-%binutilsv.tar.bz2 |
6 |
> |
%if "%(echo %cmsos | cut -f2 -d_)" == "amd64" |
7 |
> |
%define binutilsv 2.19.1 |
8 |
> |
Source3: http://ftp.gnu.org/gnu/binutils/binutils-%binutilsv.tar.bz2 |
9 |
> |
%endif |
10 |
> |
|
11 |
|
|
12 |
|
# If gcc version >= 4.0.0, we need two additional sources, for gmp and mpfr, |
13 |
|
# and we set the fortranCompiler macro (which is going to be used by the |
14 |
|
# --enable-languages option of gcc's configure) to gfortran. |
15 |
|
# Notice that we need to build those twice: once using the system compiler |
16 |
|
# and the using the newly built gcc. |
17 |
< |
%define gmpVersion 4.2.1 |
18 |
< |
%define mpfrVersion 2.2.1 |
19 |
< |
Source2: ftp://ftp.gnu.org/gnu/gmp/gmp-%{gmpVersion}.tar.bz2 |
20 |
< |
Source3: http://www.mpfr.org/mpfr-%{mpfrVersion}/mpfr-%{mpfrVersion}.tar.bz2 |
17 |
> |
%define gmpVersion 4.2.4 |
18 |
> |
%define mpfrVersion 2.3.2 |
19 |
> |
Source1: ftp://ftp.gnu.org/gnu/gmp/gmp-%{gmpVersion}.tar.bz2 |
20 |
> |
Source2: http://www.mpfr.org/mpfr-%{mpfrVersion}/mpfr-%{mpfrVersion}.tar.bz2 |
21 |
> |
Patch0: binutils-2.19.1-fix-gold |
22 |
|
|
23 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
24 |
+ |
%define gcc_major %(echo %realversion | cut -f1 -d.) |
25 |
|
%prep |
26 |
|
%setup -T -b 0 -n gcc-%realversion |
27 |
|
|
28 |
< |
%if "%cmsos" == "slc4_ia32" |
28 |
> |
case %cmsos in |
29 |
> |
"slc4_ia32" | "slc5_ia32" ) |
30 |
|
cat << \EOF_CONFIG_GCC >> gcc/config.gcc |
31 |
|
# CMS patch to include gcc/config/i386/t-cms when building gcc |
32 |
|
tm_file="$tm_file i386/cms.h" |
49 |
|
MULTILIB_DIRNAMES = ../lib |
50 |
|
MULTILIB_MATCHES = m32=m32 |
51 |
|
EOF_T_CMS |
52 |
+ |
;; |
53 |
+ |
esac |
54 |
+ |
|
55 |
+ |
%if "%{?binutilsv:set}" == "set" |
56 |
+ |
%setup -D -T -b 3 -n binutils-%binutilsv |
57 |
+ |
%patch0 -p1 |
58 |
+ |
case %cmsos in |
59 |
+ |
slc*_amd64 ) |
60 |
+ |
# This patches the default linker script to align stuff at 4096 kB boundaries rather |
61 |
+ |
# than the default 2MB (MAXPAGESIZE value for x86_64 architecture). |
62 |
+ |
perl -p -i -e 's|\$[{]MAXPAGESIZE[}]|4096|g;s|\$[{]SEGMENT_SIZE[}]|4096|g' ld/scripttempl/elf.sc |
63 |
+ |
;; |
64 |
+ |
esac |
65 |
|
%endif |
66 |
|
|
67 |
< |
%setup -D -T -b 1 -n binutils-%binutilsv |
68 |
< |
%setup -D -T -b 2 -n gmp-%{gmpVersion} |
50 |
< |
%setup -D -T -b 3 -n mpfr-%{mpfrVersion} |
67 |
> |
%setup -D -T -b 1 -n gmp-%{gmpVersion} |
68 |
> |
%setup -D -T -b 2 -n mpfr-%{mpfrVersion} |
69 |
|
|
70 |
|
%build |
71 |
|
# Set special variables required to build 32-bit executables on 64-bit |
75 |
|
case $(uname -m):%{cmsos} in |
76 |
|
*:slc4_ia32 ) |
77 |
|
CCOPTS="-m32 -Wa,--32" ;; |
78 |
+ |
*:slc5_ia32 ) |
79 |
+ |
CCOPTS="-m32 -Wa,--32" ;; |
80 |
|
* ) |
81 |
|
CCOPTS="" ;; |
82 |
|
esac |
63 |
– |
|
83 |
|
# If requested, build our own binutils. Currently the default is to use |
84 |
|
# the system binutils. |
85 |
< |
%if "%{?use_external_binutils:set}" == "set" |
85 |
> |
%if "%{?binutilsv:set}" == "set" |
86 |
|
cd ../binutils-%{binutilsv} |
87 |
|
CC="gcc $CCOPTS" ./configure --prefix=%i |
88 |
|
make %makeprocesses |
89 |
+ |
perl -p -i -e 's|LN = ln|LN = cp -p|;s|ln ([^-])|cp -p $1|g' `find . -name Makefile` |
90 |
|
make install |
91 |
|
%endif |
92 |
|
|
93 |
|
# Build GMP/MPFR for GCC 4.x |
94 |
+ |
%define gcc4opts %{nil} |
95 |
+ |
%if "%gcc_major" == "4" |
96 |
|
cd ../gmp-%{gmpVersion} |
97 |
|
CC="gcc $CCOPTS" ./configure --prefix=%i/tmp/gmp --disable-shared |
98 |
|
make %makeprocesses |
101 |
|
cd ../mpfr-%{mpfrVersion} |
102 |
|
CC="gcc $CCOPTS" ./configure --prefix=%i/tmp/mpfr --with-gmp=%i/tmp/gmp --disable-shared |
103 |
|
make %makeprocesses |
104 |
+ |
make install |
105 |
+ |
%define gcc4opts --with-gmp=%i/tmp/gmp --with-mpfr=%i/tmp/mpfr |
106 |
+ |
%endif |
107 |
|
|
108 |
|
# Build the compilers |
109 |
|
cd ../gcc-%realversion |
110 |
|
mkdir -p obj |
111 |
|
cd obj |
112 |
+ |
|
113 |
|
CC="gcc $CCOPTS" \ |
114 |
|
../configure --prefix=%i \ |
115 |
|
--enable-languages=c,c++,`case %v in 3.*) echo f77;; *) echo fortran;; esac` \ |
116 |
< |
--with-gmp-dir=%_builddir/gmp-%{gmpVersion} \ |
91 |
< |
--with-mpfr-dir=%_builddir/mpfr-%{mpfrVersion} \ |
92 |
< |
--enable-shared |
116 |
> |
%gcc4opts --enable-shared |
117 |
|
|
118 |
|
make %makeprocesses bootstrap |
119 |
|
|
120 |
|
%install |
121 |
< |
cd %_builddir/gcc-%{realversion}/obj && make install |
121 |
> |
cd %_builddir/gcc-%{realversion}/obj && make install |
122 |
> |
|
123 |
|
ln -s gcc %i/bin/cc |
124 |
|
find %i/lib %i/lib32 %i/lib64 -name '*.la' -exec rm -f {} \; || true |
125 |
|
|
126 |
< |
# SCRAM ToolBox toolfile |
127 |
< |
%define compiler_ver %(echo %realversion | sed -e "s|\\.||g") |
128 |
< |
%define compiler_ver_major %(echo %realversion | sed -e "s|\\..*||") |
104 |
< |
mkdir -p %i/etc/scram.d |
105 |
< |
case %cmsplatf in |
106 |
< |
slc3* ) |
107 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/cxxcompiler |
108 |
< |
<doc type=BuildSystem::ToolDoc version=1.1> |
109 |
< |
<tool name=cxxcompiler version=%v type=compiler> |
110 |
< |
<client> |
111 |
< |
<Environment name=GCC_BASE default="%i"></Environment> |
112 |
< |
<Environment name=GCCBINDIR default="$GCC_BASE/bin"></Environment> |
113 |
< |
<Environment name=CXX value="$GCCBINDIR/c++"></Environment> |
114 |
< |
</client> |
115 |
< |
<Flags SCRAM_COMPILER_NAME="gcc%compiler_ver"> |
116 |
< |
<Flags CCcompiler="gcc%compiler_ver_major"> |
117 |
< |
<Flags MODULEFLAGS="-shared"> |
118 |
< |
<Flags CXXDEBUGFLAG="-g"> |
119 |
< |
<Flags CPPDEFINES="GNU_GCC"> |
120 |
< |
<Flags CPPDEFINES="_GNU_SOURCE"> |
121 |
< |
<Flags CXXSHAREDOBJECTFLAGS="-fPIC"> |
122 |
< |
<Flags CXXFLAGS="-pedantic -ansi -pthread -pipe"> |
123 |
< |
<Flags CXXFLAGS="-O2"> |
124 |
< |
<Flags CXXFLAGS="-felide-constructors -fmessage-length=0 -ftemplate-depth-300"> |
125 |
< |
<Flags CXXFLAGS="-Wall -Wno-non-template-friend -Wno-long-long -Wimplicit -Wreturn-type -Wunused -Wparentheses"> |
126 |
< |
<Flags LDFLAGS="-Wl,-E"> |
127 |
< |
<Flags CXXSHAREDFLAGS="-Wl,-E"> |
128 |
< |
<Flags SHAREDSUFFIX="so"> |
129 |
< |
<Flags SCRAM_LANGUAGE_TYPE="C++"> |
130 |
< |
<Runtime name=GCC_EXEC_PREFIX default="$GCC_BASE/lib/gcc-lib/"> |
131 |
< |
<Runtime name=LD_LIBRARY_PATH value="$GCC_BASE/lib" type=path> |
132 |
< |
<Runtime name=PATH value="$GCC_BASE/bin" type=path> |
133 |
< |
</tool> |
134 |
< |
EOF_TOOLFILE |
135 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/ccompiler |
136 |
< |
<doc type=BuildSystem::ToolDoc version=1.1> |
137 |
< |
<tool name=ccompiler version=%v type=compiler> |
138 |
< |
<client> |
139 |
< |
<Environment name=GCC_BASE default="%i"></Environment> |
140 |
< |
<Environment name=GCCBINDIR value="$GCC_BASE/bin"></Environment> |
141 |
< |
<Environment name=CC value="$GCCBINDIR/gcc"></Environment> |
142 |
< |
</client> |
143 |
< |
<Flags CDEBUGFLAG="-g"> |
144 |
< |
<Flags CSHAREDOBJECTFLAGS="-fPIC"> |
145 |
< |
<Flags CFLAGS="-pthread"> |
146 |
< |
<Flags CFLAGS="-O2"> |
147 |
< |
<Flags LDFLAGS="-Wl,-E"> |
148 |
< |
<Flags CSHAREDFLAGS="-Wl,-E"> |
149 |
< |
<Flags SCRAM_COMPILER_NAME="gcc%compiler_ver"> |
150 |
< |
<Flags SCRAM_LANGUAGE_TYPE="C"> |
151 |
< |
</tool> |
152 |
< |
EOF_TOOLFILE |
153 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/f77compiler |
154 |
< |
<doc type=BuildSystem::ToolDoc version=1.1> |
155 |
< |
<tool name=f77compiler version=%v type=compiler> |
156 |
< |
<lib name=g2c> |
157 |
< |
<lib name=m> |
158 |
< |
<client> |
159 |
< |
<Environment name=G77_BASE default="%i"></Environment> |
160 |
< |
<Environment name=FC default="$G77_BASE/bin/g77"></Environment> |
161 |
< |
</client> |
162 |
< |
<Flags SCRAM_COMPILER_NAME="gcc%compiler_ver"> |
163 |
< |
<Flags FFLAGS="-fno-second-underscore -Wno-globals -Wunused -Wuninitialized"> |
164 |
< |
<Flags FCO2Flag="-O2"> |
165 |
< |
<Flags FCOPTIMISED="-O2"> |
166 |
< |
<Flags FCDEBUGFLAG="-g"> |
167 |
< |
<Flags FCSHAREDFCOBJECTFLAGS="-fPIC"> |
168 |
< |
<Flags SCRAM_LANGUAGE_TYPE="FORTRAN"> |
169 |
< |
</tool> |
170 |
< |
EOF_TOOLFILE |
171 |
< |
;; |
172 |
< |
slc4_ia32_* ) |
173 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/cxxcompiler |
174 |
< |
<doc type=BuildSystem::ToolDoc version=1.1> |
175 |
< |
<tool name=cxxcompiler version=%v type=compiler> |
176 |
< |
<client> |
177 |
< |
<Environment name=GCC_BASE default="%i"></Environment> |
178 |
< |
<Environment name=GCCBINDIR default="$GCC_BASE/bin"></Environment> |
179 |
< |
<Environment name=CXX value="$GCCBINDIR/c++"></Environment> |
180 |
< |
</client> |
181 |
< |
<Flags SCRAM_COMPILER_NAME="gcc%compiler_ver"> |
182 |
< |
<Flags CCcompiler="gcc%compiler_ver_major"> |
183 |
< |
<Flags MODULEFLAGS="-shared"> |
184 |
< |
<Flags CXXDEBUGFLAG="-g"> |
185 |
< |
<Flags CPPDEFINES="GNU_GCC"> |
186 |
< |
<Flags CPPDEFINES="_GNU_SOURCE"> |
187 |
< |
<Flags CXXSHAREDOBJECTFLAGS="-fPIC"> |
188 |
< |
<Flags CXXFLAGS="-pedantic -ansi -pthread -pipe"> |
189 |
< |
<Flags CXXFLAGS="-O2"> |
190 |
< |
<Flags CXXFLAGS="-felide-constructors -fmessage-length=0 -ftemplate-depth-300"> |
191 |
< |
<Flags CXXFLAGS="-Wall -Wno-non-template-friend -Wno-long-long -Wimplicit -Wreturn-type -Wunused -Wparentheses"> |
192 |
< |
<Flags LDFLAGS="-Wl,-E"> |
193 |
< |
<Flags CXXSHAREDFLAGS="-Wl,-E"> |
194 |
< |
<Flags SHAREDSUFFIX="so"> |
195 |
< |
<Flags SCRAM_LANGUAGE_TYPE="C++"> |
196 |
< |
<Runtime name=LD_LIBRARY_PATH value="$GCC_BASE/lib" type=path> |
197 |
< |
<Runtime name=PATH value="$GCC_BASE/bin" type=path> |
198 |
< |
</tool> |
199 |
< |
EOF_TOOLFILE |
200 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/ccompiler |
201 |
< |
<doc type=BuildSystem::ToolDoc version=1.1> |
202 |
< |
<tool name=ccompiler version=%v type=compiler> |
203 |
< |
<client> |
204 |
< |
<Environment name=GCC_BASE default="%i"></Environment> |
205 |
< |
<Environment name=GCCBINDIR value="$GCC_BASE/bin"></Environment> |
206 |
< |
<Environment name=CC value="$GCCBINDIR/gcc"></Environment> |
207 |
< |
</client> |
208 |
< |
<Flags CDEBUGFLAG="-g"> |
209 |
< |
<Flags CSHAREDOBJECTFLAGS="-fPIC"> |
210 |
< |
<Flags CFLAGS="-pthread"> |
211 |
< |
<Flags CFLAGS="-O2"> |
212 |
< |
<Flags LDFLAGS="-Wl,-E"> |
213 |
< |
<Flags CSHAREDFLAGS="-Wl,-E"> |
214 |
< |
<Flags SCRAM_COMPILER_NAME="gcc%compiler_ver"> |
215 |
< |
<Flags SCRAM_LANGUAGE_TYPE="C"> |
216 |
< |
</tool> |
217 |
< |
EOF_TOOLFILE |
218 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/f77compiler |
219 |
< |
<doc type=BuildSystem::ToolDoc version=1.1> |
220 |
< |
<tool name=f77compiler version=%v type=compiler> |
221 |
< |
<lib name=g2c> |
222 |
< |
<lib name=m> |
223 |
< |
<client> |
224 |
< |
<Environment name=G77_BASE default="%i"></Environment> |
225 |
< |
<Environment name=FC default="$G77_BASE/bin/g77"></Environment> |
226 |
< |
</client> |
227 |
< |
<Flags SCRAM_COMPILER_NAME="gcc%compiler_ver"> |
228 |
< |
<Flags FFLAGS="-fno-second-underscore -Wno-globals -Wunused -Wuninitialized"> |
229 |
< |
<Flags FCO2Flag="-O2"> |
230 |
< |
<Flags FCOPTIMISED="-O2"> |
231 |
< |
<Flags FCDEBUGFLAG="-g"> |
232 |
< |
<Flags FCSHAREDFCOBJECTFLAGS="-fPIC"> |
233 |
< |
<Flags SCRAM_LANGUAGE_TYPE="FORTRAN"> |
234 |
< |
</tool> |
235 |
< |
EOF_TOOLFILE |
236 |
< |
;; |
237 |
< |
slc4_amd64_* ) |
238 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/cxxcompiler |
239 |
< |
<doc type=BuildSystem::ToolDoc version=1.1> |
240 |
< |
<tool name=cxxcompiler version=%v type=compiler> |
241 |
< |
<client> |
242 |
< |
<Environment name=GCC_BASE default="%i"></Environment> |
243 |
< |
<Environment name=GCCBINDIR default="$GCC_BASE/bin"></Environment> |
244 |
< |
<Environment name=CXX value="$GCCBINDIR/c++"></Environment> |
245 |
< |
</client> |
246 |
< |
<Flags SCRAM_COMPILER_NAME="gcc%compiler_ver"> |
247 |
< |
<Flags CCcompiler="gcc%compiler_ver_major"> |
248 |
< |
<Flags MODULEFLAGS="-shared"> |
249 |
< |
<Flags CXXDEBUGFLAG="-g"> |
250 |
< |
<Flags CPPDEFINES="GNU_GCC"> |
251 |
< |
<Flags CPPDEFINES="_GNU_SOURCE"> |
252 |
< |
<Flags CXXSHAREDOBJECTFLAGS="-fPIC"> |
253 |
< |
<Flags CXXFLAGS="-pedantic -ansi -pthread -pipe"> |
254 |
< |
<Flags CXXFLAGS="-O2"> |
255 |
< |
<Flags CXXFLAGS="-felide-constructors -fmessage-length=0 -ftemplate-depth-300"> |
256 |
< |
<Flags CXXFLAGS="-Wall -Wno-non-template-friend -Wno-long-long -Wimplicit -Wreturn-type -Wunused -Wparentheses"> |
257 |
< |
<Flags LDFLAGS="-Wl,-E"> |
258 |
< |
<Flags CXXSHAREDFLAGS="-Wl,-E"> |
259 |
< |
<Flags SHAREDSUFFIX="so"> |
260 |
< |
<Flags SCRAM_LANGUAGE_TYPE="C++"> |
261 |
< |
<Runtime name=LD_LIBRARY_PATH value="$GCC_BASE/lib64" type=path> |
262 |
< |
<Runtime name=PATH value="$GCC_BASE/bin" type=path> |
263 |
< |
</tool> |
264 |
< |
EOF_TOOLFILE |
265 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/ccompiler |
266 |
< |
<doc type=BuildSystem::ToolDoc version=1.1> |
267 |
< |
<tool name=ccompiler version=%v type=compiler> |
268 |
< |
<client> |
269 |
< |
<Environment name=GCC_BASE default="%i"></Environment> |
270 |
< |
<Environment name=GCCBINDIR value="$GCC_BASE/bin"></Environment> |
271 |
< |
<Environment name=CC value="$GCCBINDIR/gcc"></Environment> |
272 |
< |
</client> |
273 |
< |
<Flags CDEBUGFLAG="-g"> |
274 |
< |
<Flags CSHAREDOBJECTFLAGS="-fPIC"> |
275 |
< |
<Flags CFLAGS="-pthread"> |
276 |
< |
<Flags CFLAGS="-O2"> |
277 |
< |
<Flags LDFLAGS="-Wl,-E"> |
278 |
< |
<Flags CSHAREDFLAGS="-Wl,-E"> |
279 |
< |
<Flags SCRAM_COMPILER_NAME="gcc%compiler_ver"> |
280 |
< |
<Flags SCRAM_LANGUAGE_TYPE="C"> |
281 |
< |
</tool> |
282 |
< |
EOF_TOOLFILE |
283 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/f77compiler |
284 |
< |
<doc type=BuildSystem::ToolDoc version=1.1> |
285 |
< |
<tool name=f77compiler version=%v type=compiler> |
286 |
< |
<lib name=g2c> |
287 |
< |
<lib name=m> |
288 |
< |
<client> |
289 |
< |
<Environment name=G77_BASE default="%i"></Environment> |
290 |
< |
<Environment name=FC default="$G77_BASE/bin/g77"></Environment> |
291 |
< |
</client> |
292 |
< |
<Flags SCRAM_COMPILER_NAME="gcc%compiler_ver"> |
293 |
< |
<Flags FFLAGS="-fno-second-underscore -Wno-globals -Wunused -Wuninitialized"> |
294 |
< |
<Flags FCO2Flag="-O2"> |
295 |
< |
<Flags FCOPTIMISED="-O2"> |
296 |
< |
<Flags FCDEBUGFLAG="-g"> |
297 |
< |
<Flags FCSHAREDFCOBJECTFLAGS="-fPIC"> |
298 |
< |
<Flags SCRAM_LANGUAGE_TYPE="FORTRAN"> |
299 |
< |
</tool> |
300 |
< |
EOF_TOOLFILE |
301 |
< |
;; |
302 |
< |
osx104_ppc32_gcc40* ) |
303 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/cxxcompiler |
304 |
< |
<doc type=BuildSystem::ToolDoc version=1.1> |
305 |
< |
<tool name=cxxcompiler version=%v type=compiler> |
306 |
< |
<client> |
307 |
< |
<Environment name=GCC_BASE default="%i"></Environment> |
308 |
< |
<Environment name=GCCBINDIR default="$GCC_BASE/bin"></Environment> |
309 |
< |
<Environment name=CXX value="$GCCBINDIR/c++"></Environment> |
310 |
< |
</client> |
311 |
< |
<Flags SCRAM_COMPILER_NAME="gcc40"> |
312 |
< |
<Flags CCcompiler="gcc40"> |
313 |
< |
<Flags MODULEFLAGS=" "> |
314 |
< |
<Flags CXXDEBUGFLAG="-g"> |
315 |
< |
<Flags CPPDEFINES="GNU_GCC"> |
316 |
< |
<Flags CPPDEFINES="_GNU_SOURCE"> |
317 |
< |
<Flags CXXSHAREDOBJECTFLAGS="-fPIC"> |
318 |
< |
<Flags CXXFLAGS="-pedantic -ansi -pipe"> |
319 |
< |
<Flags CXXFLAGS="-O2"> |
320 |
< |
<Flags CXXFLAGS="-felide-constructors -fmessage-length=0 -ftemplate-depth-300"> |
321 |
< |
<Flags CXXFLAGS="-Wall -Wno-non-template-friend -Wno-long-long -Wimplicit -Wreturn-type -Wunused -Wparentheses"> |
322 |
< |
<Flags LDFLAGS=" "> |
323 |
< |
<Flags CXXSHAREDFLAGS="-dynamiclib -single_module"> |
324 |
< |
<Flags SHAREDSUFFIX="dylib"> |
325 |
< |
<Flags SCRAM_LANGUAGE_TYPE="C++"> |
326 |
< |
<Runtime name=DYLD_LIBRARY_PATH value="$GCC_BASE/lib" type=path> |
327 |
< |
<Runtime name=PATH value="$GCC_BASE/bin" type=path> |
328 |
< |
</tool> |
329 |
< |
EOF_TOOLFILE |
330 |
< |
;; |
331 |
< |
esac |
332 |
< |
|
333 |
< |
%post |
334 |
< |
# %{relocateConfig}lib/libg2c.la |
335 |
< |
# %{relocateConfig}lib/libstdc++.la |
336 |
< |
# %{relocateConfig}lib/libsupc++.la |
337 |
< |
# %if "%cpu" == "amd64" |
338 |
< |
# %{relocateConfig}lib64/libg2c.la |
339 |
< |
# %{relocateConfig}lib64/libstdc++.la |
340 |
< |
# %{relocateConfig}lib64/libsupc++.la |
341 |
< |
# %{relocateConfig}lib/32/libg2c.la |
342 |
< |
# %{relocateConfig}lib/32/libstdc++.la |
343 |
< |
# %{relocateConfig}lib/32/libsupc++.la |
344 |
< |
# %endif |
345 |
< |
# %if "%gcc4" == "true" |
346 |
< |
# %{relocateConfig}lib/libgfortran.la |
347 |
< |
# %{relocateConfig}lib/libgfortranbegin.la |
348 |
< |
# %endif |
349 |
< |
%{relocateConfig}etc/scram.d/cxxcompiler |
350 |
< |
%{relocateConfig}etc/scram.d/ccompiler |
351 |
< |
%{relocateConfig}etc/scram.d/f77compiler |
126 |
> |
# SCRAM ToolBox toolfile is now geneated by the gcc-toolfile.spec |
127 |
> |
# so that everything works even in the case "--use-system-compiler" |
128 |
> |
# option is specified. |