This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: [patch, mips] Fix stubs files for hard float vs. soft float
> * sysdeps/mips/preconfigure: Create default_abi.make.
We use dashes in file names for the most part, not underscores.
> --- a/ports/sysdeps/mips/preconfigure
> +++ b/ports/sysdeps/mips/preconfigure
> @@ -1,3 +1,24 @@
> +
> +cat > conftest.c <<EOF
> +#if defined(__mips_soft_float) && (_MIPS_SIM == _ABIO32)
> +o32_soft
> +#elif defined(__mips_hard_float) && (_MIPS_SIM == _ABIO32)
> +o32_hard
> +#elif defined(__mips_soft_float) && (_MIPS_SIM == _ABIN32)
> +n32_soft
> +#elif defined(__mips_hard_float) && (_MIPS_SIM == _ABIN32)
> +n32_hard
> +#elif defined(__mips_soft_float) && (_MIPS_SIM == _ABI64)
> +n64_soft
> +#elif defined(__mips_hard_float) && (_MIPS_SIM == _ABI64)
> +n64_hard
> +#else
> +ERROR
> +#endif
> +EOF
> +default_abi=`$CC $CFLAGS $CPPFLAGS -E -P conftest.c`
> +echo "default-abi := $default_abi" >> default_abi.make
This should fail at configure time if something goes wrong,
not produce bogus results.
Why does this need to be in preconfigure instead of configure?
Thanks,
Roland