config/global/build-behave.in
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Wed Dec 26 12:15:10 2012 +0100 (2012-12-26)
changeset 3144 481658dd0e7f
parent 2716 afa3fde1f7a7
child 3172 edb17e96ca60
permissions -rw-r--r--
libc/eglibc: remove now superfluous config knobs

All eglibc versions we now have support pkgversion and bugurl.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
     1 # Options related to how the build behaves
     2 
     3 comment "Build behavior"
     4 
     5 comment "Build options hiden"
     6     depends on BACKEND
     7 
     8 config PARALLEL_JOBS
     9     int
    10     prompt "Number of parallel jobs" if ! BACKEND
    11     default 0
    12     help
    13       Number of jobs make will be allowed to run concurently.
    14       Set this higher than the number of processors you have, but not too high.
    15       A good rule of thumb is twice the number of processors you have.
    16       
    17       Enter 1 to have only one job at a time.
    18 
    19       Enter 0 to set automatically based on how many processors the host has.
    20 
    21 config LOAD
    22     int
    23     prompt "Maximum allowed load" if ! BACKEND
    24     default 0
    25     help
    26       Specifies that no new jobs should be started if there are others jobs
    27       running and the load average is at least this value.
    28       
    29       Makes sense on SMP machines only.
    30       
    31       Enter 0 to have no limit on the load average.
    32       
    33       Note: only the integer part of the load is allowed here (you can't enter
    34             0.75 for example).
    35 
    36 config USE_PIPES
    37     bool
    38     prompt "Use -pipe" if ! BACKEND
    39     default y
    40     help
    41       Use gcc's option -pipe to use pipes rather than temp files when building
    42       the toolchain.
    43 
    44 config EXTRA_CFLAGS_FOR_BUILD
    45     string
    46     prompt "Extra build compiler flags"
    47     default ""
    48     help
    49       Extra flags to pass to the build C and C++ compiler.
    50 
    51       May be used to change the default features of the build
    52       compiler such as turning off the stack protector or fortify.
    53       
    54 config EXTRA_LDFLAGS_FOR_BUILD
    55     string
    56     prompt "Extra build linker flags"
    57     default ""
    58     help
    59       Extra flags to pass to the build linker.
    60 
    61       May be used to change the default features of the build
    62       linker.
    63       
    64 config EXTRA_CFLAGS_FOR_HOST
    65     string
    66     prompt "Extra host compiler flags"
    67     default ""
    68     help
    69       Extra flags to pass to the host C and C++ compiler.
    70 
    71       May be used to change the default features of the host
    72       compiler such as turning off the stack protector or fortify.
    73       
    74 config EXTRA_LDFLAGS_FOR_HOST
    75     string
    76     prompt "Extra host linker flags"
    77     default ""
    78     help
    79       Extra flags to pass to the host linker.
    80 
    81       May be used to change the default features of the host
    82       linker.
    83 
    84 choice
    85     bool
    86     prompt "Shell to use as CONFIG_SHELL"
    87     default CONFIG_SHELL_BASH
    88     depends on ! BACKEND
    89 
    90 config CONFIG_SHELL_SH
    91     bool
    92     prompt "sh (the system shell)"
    93     help
    94       Use 'sh' as CONFIG_SHELL.
    95       
    96       ./configure scripts and Makefiles make intensive use of calling
    97       sub-shells. This is usually done by calling /bin/sh. /bin/sh ought
    98       to be an at-least-POSIX-conformant shell (that is, able to interpret
    99       POSIX shell scripts).
   100       
   101       On many (most?) systems, /bin/sh is a symlink to bash. On some other
   102       systems (eg. Ubuntu, latest Debian), /bin/sh points to dash (or ash).
   103       bash is a full-featured shell, with many extension to POSIX, but is
   104       quite slow (see ection BUGS in the bash man page), while dash is
   105       faster, with very few extensions to POSIX.  On the other hand, some
   106       ./configure scripts, although written to use /bin/sh, may really
   107       require to be run by bash.
   108       
   109       The default is to use bash, as some components (eg. GMP) will fail
   110       to build with anything else than bash.
   111       
   112       Unless you have a very strong reason not to (eg. you are debugging
   113       the bashisms in a ./configure script), you should use the default,
   114       and use bash.
   115 
   116 config CONFIG_SHELL_ASH
   117     bool
   118     prompt "ash (READ HELP!)"
   119     help
   120       Use 'ash' as CONFIG_SHELL.
   121       
   122       See help for CONFIG_SHELL_SH, above, for more explanations.
   123       
   124       NOTE: It is advised that you do NOT use ash as CONFIG_SHELL, as some
   125       components are broken. If you decide to use ash, and the build breaks,
   126       don't come moaning and set the CONFIG_SHELL to bash, below.
   127 
   128 config CONFIG_SHELL_BASH
   129     bool
   130     prompt "bash"
   131     help
   132       Use 'bash' as CONFIG_SHELL.
   133       
   134       See help for CONFIG_SHELL_SH, above, for more explanations.
   135 
   136 config CONFIG_SHELL_CUSTOM
   137     bool
   138     prompt "custom shell"
   139     help
   140       Enter full path to the custom shell below.
   141       
   142       See help for CONFIG_SHELL_SH, above, for more explanations.
   143 
   144 endchoice
   145 
   146 # Do not put this into the choice above, because the choice
   147 # is not available in BACKEND-mode, while we do want this to
   148 # be set even in BACKEND-mode.
   149 config CONFIG_SHELL_CUSTOM_PATH
   150     string
   151     prompt "Path to custom shell" if ! BACKEND
   152     depends on CONFIG_SHELL_CUSTOM || BACKEND
   153     default "/bin/sh"
   154 
   155 # Ditto.
   156 # And we must use the ./configured bash...
   157 config CONFIG_SHELL
   158     string
   159     default "/bin/sh"                   if CONFIG_SHELL_SH
   160     default "/bin/ash"                  if CONFIG_SHELL_ASH
   161     default "${bash}"                   if CONFIG_SHELL_BASH
   162     default CONFIG_SHELL_CUSTOM_PATH    if CONFIG_SHELL_CUSTOM || BACKEND