|
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
|
|
#
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
# Please add additional copyright information _after_ the line containing
|
|
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
|
|
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
|
|
#
|
|
# ROCK Linux: rock-src/package/base/gcc/config-300.in
|
|
# ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version. A copy of the GNU General Public
|
|
# License can be found at Documentation/COPYING.
|
|
#
|
|
# Many people helped and are helping developing ROCK Linux. Please
|
|
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
|
|
# file for details.
|
|
#
|
|
# --- ROCK-COPYRIGHT-NOTE-END ---
|
|
|
|
if pkgcheck gcc X
|
|
then
|
|
menu_begin MENU_COMPILER 'GCC Compiler Options'
|
|
|
|
bool 'Building gcc 2.x package' ROCKCFG_PKG_GCC_GCC2 0
|
|
bool 'Building gcc 3.2.x package' ROCKCFG_PKG_GCC_GCC32 0
|
|
bool 'Building gcc 3.3.x package' ROCKCFG_PKG_GCC_GCC33 0
|
|
bool 'Building gcc 3.4.x package' ROCKCFG_PKG_GCC_GCC34 0
|
|
bool 'Building gcc 4.0.x package' ROCKCFG_PKG_GCC_GCC40 1
|
|
bool 'Building gcc 4.1.x package' ROCKCFG_PKG_GCC_GCC41 0
|
|
|
|
d="none" ; l="" ; m=""
|
|
if [ $ROCKCFG_PKG_GCC_GCC2 = 1 ]; then pkgfork gcc gcc2; d="gcc2"; l="$l $d"; fi
|
|
if [ $ROCKCFG_PKG_GCC_GCC32 = 1 ]; then pkgfork gcc gcc32; d="gcc33"; l="$l $d"; fi
|
|
if [ $ROCKCFG_PKG_GCC_GCC33 = 1 ]; then pkgfork gcc gcc33; d="gcc32"; l="$l $d"; fi
|
|
if [ $ROCKCFG_PKG_GCC_GCC34 = 1 ]; then pkgfork gcc gcc34; d="gcc34"; l="$l $d"; fi
|
|
if [ $ROCKCFG_PKG_GCC_GCC40 = 1 ]; then pkgfork gcc gcc40; d="gcc40"; l="$l $d"; m="$m $d"; fi
|
|
if [ $ROCKCFG_PKG_GCC_GCC41 = 1 ]; then pkgfork gcc gcc41; d="gcc41"; l="$l $d"; m="$m $d"; fi
|
|
pkgremove gcc
|
|
|
|
k=""; for x in $l; do
|
|
k="$k $x Use_${x}_as_standard_C_compiler"
|
|
done
|
|
choice ROCKCFG_DEFAULT_CC $d $k
|
|
|
|
k=""; for x in $l; do
|
|
k="$k $x Use_${x}_as_standard_Kernel_C_compiler"
|
|
done
|
|
choice ROCKCFG_DEFAULT_KCC $d $k
|
|
|
|
k=""; for x in $l; do
|
|
k="$k $x Use_${x}_as_standard_C++_compiler"
|
|
done
|
|
choice ROCKCFG_DEFAULT_CXX $d $k
|
|
|
|
k=""; for x in $l; do
|
|
k="$k $x Use_${x}_as_standard_Fortran_77_compiler"
|
|
done
|
|
choice ROCKCFG_DEFAULT_F77 $d $k
|
|
|
|
k=""; for x in $m; do
|
|
k="$k $x Use_${x}_as_standard_Fortran_95_compiler"
|
|
done
|
|
[ "$k" ] && choice ROCKCFG_DEFAULT_F95 $d $k
|
|
|
|
# build non-default CCs in stages 5 and 9
|
|
# and dedicated C++ and Fortran77 compilers in stages 2 and 9
|
|
k=""; for x in gcc2 gcc32 gcc33 gcc34 gcc40 gcc41; do
|
|
if [ "$ROCKCFG_DEFAULT_CC" != "$x" ] ; then
|
|
if [[ "$ROCKCFG_DEFAULT_CXX" != "$x" && "$ROCKCFG_DEFAULT_F77" != "$x" ]]; then
|
|
k="$k / gcc=$x / { s/^\(.\) [0-9-]*/\1 -----5---9/; s/ CORE //g; };"
|
|
else
|
|
k="$k / gcc=$x / s/^\(.\) [0-9-]*/\1 --2------9/;"
|
|
fi
|
|
fi
|
|
done
|
|
pkgfilter sed -e "$k"
|
|
|
|
bool 'Use Stack-Smashing Protector when available' \
|
|
ROCKCFG_PKG_GCC_STACKPRO 0
|
|
%include package/*/*/subconfig-gcc.in
|
|
|
|
if pkgcheck gcc=gcc2 X; then
|
|
comment ' '
|
|
comment '--- GCC 2.x options'
|
|
bool 'Do not build CHILL compiler' \
|
|
ROCKCFG_PKG_GCC2_NO_CHILL 1
|
|
%include package/*/*/subconfig-gcc2.in
|
|
fi
|
|
if pkgcheck gcc=gcc32 X; then
|
|
comment ' '
|
|
comment '--- GCC 3.2.x options'
|
|
bool 'Do not build JAVA compiler' \
|
|
ROCKCFG_PKG_GCC32_NO_JAVA 1
|
|
%include package/*/*/subconfig-gcc32.in
|
|
fi
|
|
if pkgcheck gcc=gcc33 X; then
|
|
comment ' '
|
|
comment '--- GCC 3.3.x options'
|
|
bool 'Do not build JAVA compiler' \
|
|
ROCKCFG_PKG_GCC33_NO_JAVA 1
|
|
%include package/*/*/subconfig-gcc33.in
|
|
fi
|
|
if pkgcheck gcc=gcc34 X; then
|
|
comment ' '
|
|
comment '--- GCC 3.4.x options'
|
|
bool 'Do not build JAVA compiler' \
|
|
ROCKCFG_PKG_GCC34_NO_JAVA 1
|
|
bool 'Do profiled bootstrap' \
|
|
ROCKCFG_PKG_GCC34_PROFILED 1
|
|
%include package/*/*/subconfig-gcc34.in
|
|
fi
|
|
if pkgcheck gcc=gcc40 X; then
|
|
comment ' '
|
|
comment '--- GCC 4.0.x options'
|
|
bool 'Do not build JAVA compiler' \
|
|
ROCKCFG_PKG_GCC40_NO_JAVA 1
|
|
bool 'Do profiled bootstrap' \
|
|
ROCKCFG_PKG_GCC40_PROFILED 1
|
|
%include package/*/*/subconfig-gcc40.in
|
|
fi
|
|
if pkgcheck gcc=gcc41 X; then
|
|
comment ' '
|
|
comment '--- GCC 4.1.x options'
|
|
bool 'Do not build JAVA compiler' \
|
|
ROCKCFG_PKG_GCC41_NO_JAVA 1
|
|
bool 'Do profiled bootstrap' \
|
|
ROCKCFG_PKG_GCC41_PROFILED 1
|
|
%include package/*/*/subconfig-gcc41.in
|
|
fi
|
|
|
|
menu_end
|
|
fi
|
|
|