This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 1/2] glibc-ports: Use /lib/ld-linux-armhf.so.3 as the dynamic linker for the ARM hard-float ABI.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: "Carlos O'Donell" <carlos at systemhalted dot org>, libc-ports at sourceware dot org, "Joseph S. Myers" <joseph at codesourcery dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 7 May 2012 11:49:26 -0700 (PDT)
- Subject: Re: [PATCH 1/2] glibc-ports: Use /lib/ld-linux-armhf.so.3 as the dynamic linker for the ARM hard-float ABI.
- References: <CADZpyiw9Sf+iZQSJRWpuuX0Eomewz98gaXFUU9YjFrPZ_V-BCQ@mail.gmail.com><m262c8ih7y.fsf@igel.home>
> "Carlos O'Donell" <carlos@systemhalted.org> writes:
>
> > +AC_CACHE_CHECK([whether the compiler is using the ARM hard-float ABI],
> > + [libc_cv_arm_pcs_vfp],
> > + [archcppflag=`echo "" |
> > + $CC $CFLAGS $CPPFLAGS -E -dM - |
> > + grep __ARM_PCS_VFP |
> > + sed -e 's/^#define //' -e 's/ .*//'`
>
> Please use AC_EGREP_CPP.
That won't work because it doesn't pass -dM. But anyway, what we've always
said was the right approach is just a compile test that does:
#ifndef __ARM_PCS_VFP
#error do not have it
#endif
or the like.
Thanks,
Roland