[libav-devel] [PATCH 6/7] configure: Simplify vfp_args check

James Almer jamrial at gmail.com
Thu Mar 22 15:24:39 CET 2018


On 3/20/2018 6:49 AM, Diego Biurrun wrote:
> ---
>  configure | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)
> 
> diff --git a/configure b/configure
> index 9257b94631..830f754412 100755
> --- a/configure
> +++ b/configure
> @@ -4303,10 +4303,7 @@ elif enabled arm; then
>      elif ! test_cpp_condition stddef.h "defined __ARM_PCS || defined __SOFTFP__" && [ $target_os != darwin ]; then
>          case "${cross_prefix:-$cc}" in
>              *hardfloat*) enable vfp_args; fpabi=vfp ;;
> -            *) check_ld vfp_args <<EOF && fpabi=vfp || fpabi=soft ;;
> -__asm__ (".eabi_attribute 28, 1");
> -int main(void) { return 0; }
> -EOF
> +            *) check_ld vfp_args '_asm__ (".eabi_attribute 28, 1"); int main(void) { return 0; }' && fpabi=vfp || fpabi=soft ;;
>          esac
>          warn "Compiler does not indicate floating-point ABI, guessing $fpabi."
>      fi

Ok if tested.


More information about the libav-devel mailing list