OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
3.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../gcc/config-550.in
  5. # Copyright (C) 2006 - 2008 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. # Copyright (C) 1998 - 2003 Clifford Wolf
  8. #
  9. # More information can be found in the files COPYING and README.
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; version 2 of the License. A copy of the
  14. # GNU General Public License can be found in the file COPYING.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. menu_begin MENU_COMPILER 'Selecting compiler'
  17. pkgout
  18. default= ; list=
  19. while read pkg ver ; do
  20. default=${default:-$pkg} ; [ $pkg = gcc3 ] && default=gcc3
  21. list="$list $pkg Use_${pkg}_($ver)_as_standard_C_compiler"
  22. done < <(grep "^X .* CC " $cfgtmpdir/config/packages | cut -f5,6 -d' ')
  23. if [ -z "$default" ] ; then
  24. default="cc" ; list="cc Standard_C-Compiler_CC"
  25. fi
  26. choice SDECFG_DEFAULT_CC $default $list
  27. # do not build non-default gcc on stages 0 or 1
  28. if [ "$SDECFG_DEFAULT_CC" != "gcc2" ]; then
  29. pkgfilter sed -e '/ gcc2 / s/^\(..\)../\1--/'
  30. fi
  31. if [ "$SDECFG_DEFAULT_CC" != "gcc3" ]; then
  32. pkgfilter sed -e '/ gcc3 / s/^\(..\)../\1--/'
  33. fi
  34. if [ "$SDECFG_DEFAULT_CC" != "gcc33" ]; then
  35. pkgfilter sed -e '/ gcc33 / s/^\(..\)../\1--/'
  36. fi
  37. if [ "$SDECFG_DEFAULT_CC" != "gccx" ]; then
  38. pkgfilter sed -e '/ gccx / s/^\(..\)../\1--/'
  39. fi
  40. pkgout
  41. default= ; list=
  42. while read pkg ver ; do
  43. default=${default:-$pkg} ; [ $pkg = gcc3 ] && default=gcc3
  44. list="$list $pkg Use_${pkg}_($ver)_as_kernel_C_compiler"
  45. done < <(grep "^X .* KCC " $cfgtmpdir/config/packages | cut -f5,6 -d' ')
  46. if [ -z "$default" ] ; then
  47. default="kcc" ; list="kcc Standard_Kernel_C-Compiler_KCC"
  48. fi
  49. choice SDECFG_DEFAULT_KCC $default $list
  50. pkgout
  51. default= ; list=
  52. while read pkg ver ; do
  53. default=${default:-$pkg} ; [ $pkg = gcc3 ] && default=gcc3
  54. list="$list $pkg Use_${pkg}_($ver)_as_standard_C++_compiler"
  55. done < <(grep "^X .* CXX " $cfgtmpdir/config/packages | cut -f5,6 -d' ')
  56. if [ -z "$default" ] ; then
  57. default="c++" ; list="c++ Standard_C++-Compiler_C++"
  58. fi
  59. choice SDECFG_DEFAULT_CXX $default $list
  60. pkgout
  61. default= ; list=
  62. while read pkg ver ; do
  63. default=${default:-$pkg} ; [ $pkg = gcc3 ] && default=gcc3
  64. list="$list $pkg Use_${pkg}_($ver)_as_standard_F77_compiler"
  65. done < <(grep "^X .* F77 " $cfgtmpdir/config/packages | cut -f5,6 -d' ')
  66. if [ -z "$default" ] ; then
  67. default="f77" ; list="f77 Standard_Fortran-Compiler_F77"
  68. fi
  69. choice SDECFG_DEFAULT_F77 $default $list
  70. menu_end
  71. if pkgcheck "gcc" X; then
  72. menu_begin MENU_PKG_GCC 'GCC (GNU Compiler Collection) options'
  73. bool 'Use Stack-Smashing Protector' \
  74. SDECFG_PKG_GCC_STACKPRO 0
  75. [ -s $cfgtmpdir/subconfig-gcc.in ] && . $cfgtmpdir/subconfig-gcc.in
  76. # TODO: recheck mips - x86-64 should only be temp. broken
  77. if [ "$SDECFG_ARCH" != "mips" ]; then
  78. bool 'Build the JAVA compiler' SDECFG_PKG_GCC_JAVA 1
  79. fi
  80. bool 'Build the F77 compiler' SDECFG_PKG_GCC_F77 1
  81. bool 'Build the OBJC compiler' SDECFG_PKG_GCC_OBJC 1
  82. comment ' '
  83. bool 'Build version specific runtime libraries' \
  84. SDECFG_PKG_GCC_VERSION_LIBS 0
  85. bool 'Build the pre-compiled header (PCH) for libstdc++' \
  86. SDECFG_PKG_GCC_CXX_PCH 0
  87. menu_end
  88. fi