Commit 5691c746 authored by Diego Biurrun's avatar Diego Biurrun

configure: Group toolchain parameter mangling functions together

parent 5cb62f9d
......@@ -769,12 +769,32 @@ test_cmd(){
"$@" >> $logfile 2>&1
}
cc_e(){
eval printf '%s\\n' $CC_E
}
cc_o(){
eval printf '%s\\n' $CC_O
}
cc_e(){
eval printf '%s\\n' $CC_E
as_o(){
eval printf '%s\\n' $AS_O
}
x86asm_o(){
eval printf '%s\\n' $X86ASM_O
}
ld_o(){
eval printf '%s\\n' $LD_O
}
hostcc_e(){
eval printf '%s\\n' $HOSTCC_E
}
hostcc_o(){
eval printf '%s\\n' $HOSTCC_O
}
test_cc(){
......@@ -798,10 +818,6 @@ test_cpp(){
test_cmd $cc $CPPFLAGS $CFLAGS "$@" $(cc_e $TMPO) $TMPC
}
as_o(){
eval printf '%s\\n' $AS_O
}
test_as(){
log test_as "$@"
cat > $TMPS
......@@ -809,10 +825,6 @@ test_as(){
test_cmd $as $CPPFLAGS $ASFLAGS "$@" $AS_C $(as_o $TMPO) $TMPS
}
x86asm_o(){
eval printf '%s\\n' $X86ASM_O
}
test_x86asm(){
log test_x86asm "$@"
echo "$1" > $TMPASM
......@@ -865,10 +877,6 @@ check_x86asm(){
test_x86asm "$@" && enable $name
}
ld_o(){
eval printf '%s\\n' $LD_O
}
test_ld(){
log test_ld "$@"
flags=$(filter_out '-l*' "$@")
......@@ -1193,14 +1201,6 @@ require_pkg_config(){
check_pkg_config "$@" || die "ERROR: $pkg_version not found"
}
hostcc_e(){
eval printf '%s\\n' $HOSTCC_E
}
hostcc_o(){
eval printf '%s\\n' $HOSTCC_O
}
test_host_cc(){
log test_host_cc "$@"
cat > $TMPC
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment