config/companion_libs/mpc.in
author Johannes Stezenbach <js@sig21.net>
Thu Jul 29 19:30:37 2010 +0200 (2010-07-29)
changeset 2044 20dd8cef1c8a
parent 1783 dabf9572e240
child 2319 ef1c7007dfeb
permissions -rw-r--r--
scripts: remove . from $PATH

Add CT_SanitizePath function which removes entries referring to ., /tmp
and non-existing directories from $PATH, and call it early in the
build script.

If . is in PATH, gcc-4.4.4 build breaks:

[ALL ] checking what assembler to use...
/tmp/build/targets/arm-unknown-linux-uclibcgnueabi/build/gcc-core-static/arm-unknown-linux-uclibcgnueabi/bin/as
...
[ALL ] config.status: creating as

i.e. "as" is supposed to be the arm-unknown-linux-uclibcgnueabi cross assembler,
but config.status creates a local "as" script which is calling the
host assembler.

Signed-off-by: Johannes Stezenbach <js@sig21.net>
[Yann E. MORIN: style fixes + explanations]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     1 # MPC options
     2 
     3 choice
     4     bool
     5     prompt "MPC version"
     6 # Don't remove next line
     7 # CT_INSERT_VERSION_BELOW
     8 
     9 config MPC_V_0_8_2
    10     bool
    11     prompt "0.8.2 (EXPERIMENTAL)"
    12     depends on EXPERIMENTAL
    13 
    14 config MPC_V_0_8_1
    15     bool
    16     prompt "0.8.1"
    17 
    18 config MPC_V_0_7
    19     bool
    20     prompt "0.7"
    21 
    22 config MPC_V_0_6
    23     bool
    24     prompt "0.6 (OBSOLETE)"
    25     depends on OBSOLETE
    26 
    27 endchoice
    28 
    29 config MPC_VERSION
    30     string
    31 # Don't remove next line
    32 # CT_INSERT_VERSION_STRING_BELOW
    33     default "0.8.2" if MPC_V_0_8_2
    34     default "0.8.1" if MPC_V_0_8_1
    35     default "0.7" if MPC_V_0_7
    36     default "0.6" if MPC_V_0_6