Fix --with-cmodel option
When passed with `--without-cmodel`, cmodel will get value `no` which is unexpected. Signed-off-by: demin.han <demin.han@starfivetech.com>
This commit is contained in:
parent
43ff3d088e
commit
9cfb1a8675
|
@ -4177,10 +4177,13 @@ fi
|
||||||
if test ${with_cmodel+y}
|
if test ${with_cmodel+y}
|
||||||
then :
|
then :
|
||||||
withval=$with_cmodel;
|
withval=$with_cmodel;
|
||||||
|
else $as_nop
|
||||||
|
with_cmodel=no
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if test "x$with_cmodel" != x
|
if test "x$with_cmodel" != xno
|
||||||
then :
|
then :
|
||||||
cmodel=-mcmodel=$with_cmodel
|
cmodel=-mcmodel=$with_cmodel
|
||||||
|
|
||||||
|
|
|
@ -177,10 +177,10 @@ AC_ARG_WITH(cmodel,
|
||||||
[AS_HELP_STRING([--with-cmodel],
|
[AS_HELP_STRING([--with-cmodel],
|
||||||
[Select the code model to use when building libc and libgcc @<:@--with-cmodel=medlow@:>@])],
|
[Select the code model to use when building libc and libgcc @<:@--with-cmodel=medlow@:>@])],
|
||||||
[],
|
[],
|
||||||
[]
|
[with_cmodel=no]
|
||||||
)
|
)
|
||||||
|
|
||||||
AS_IF([test "x$with_cmodel" != x],
|
AS_IF([test "x$with_cmodel" != xno],
|
||||||
[AC_SUBST(cmodel, -mcmodel=$with_cmodel)],
|
[AC_SUBST(cmodel, -mcmodel=$with_cmodel)],
|
||||||
[AC_SUBST(cmodel, -mcmodel=medlow)])
|
[AC_SUBST(cmodel, -mcmodel=medlow)])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue