1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../gcc/config-550.in
5 # Copyright (C) 2004 - 2019 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
8 # More information can be found in the files COPYING and README.
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; version 2 of the License. A copy of the
13 # GNU General Public License can be found in the file COPYING.
14 # --- T2-COPYRIGHT-NOTE-END ---
16 menu_begin MENU_COMPILER 'Compiler'
19 while read pkg ver; do
20 default=${default:-$pkg}
21 list="$list $pkg Use_${pkg}_($ver)_as_standard_C_compiler"
22 done < <(grep "^X .* CC " config/$config/packages | cut -f5,6 -d' ')
23 if [ -z "$default" ]; then
24 default="cc"; list="cc Standard_C-Compiler_CC"
26 choice SDECFG_DEFAULT_CC $default $list
30 while read pkg ver; do
31 default=${default:-$pkg}
32 list="$list $pkg Use_${pkg}_($ver)_as_kernel_C_compiler"
33 done < <(grep "^X .* KCC " config/$config/packages | cut -f5,6 -d' ')
34 if [ -z "$default" ]; then
35 default="kcc"; list="kcc Standard_Kernel_C-Compiler_KCC"
37 choice SDECFG_DEFAULT_KCC $default $list
41 while read pkg ver; do
42 default=${default:-$pkg}
43 list="$list $pkg Use_${pkg}_($ver)_as_standard_C++_compiler"
44 done < <(grep "^X .* CXX " config/$config/packages | cut -f5,6 -d' ')
45 if [ -z "$default" ]; then
46 default="c++"; list="c++ Standard_C++-Compiler_C++"
48 choice SDECFG_DEFAULT_CXX $default $list
52 while read pkg ver; do
53 default=${default:-$pkg}
54 list="$list $pkg Use_${pkg}_($ver)_as_standard_F77_compiler"
55 done < <(grep "^X .* F77 " config/$config/packages | cut -f5,6 -d' ')
56 if [ -z "$default" ]; then
57 default="f77"; list="f77 Standard_Fortran-Compiler_F77"
59 choice SDECFG_DEFAULT_F77 $default $list
62 if pkgcheck "gcc" X; then
63 menu_begin MENU_PKG_GCC 'GCC (GNU Compiler Collection) options'
64 bool 'Use Stack-Smashing Protector' \
65 SDECFG_PKG_GCC_STACKPRO 0
66 [ -s $cfgtmpdir/subconfig-gcc.in ] && . $cfgtmpdir/subconfig-gcc.in