This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/2] glibc-ports: Use /lib/ld-linux-armhf.so.3 as the dynamic linker for the ARM hard-float ABI.


On Mon, May 7, 2012 at 2:49 PM, Roland McGrath <roland@hack.frob.com> wrote:
>> "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.

I assumed that's what Andreas meant.

I'm currently using:

#ifdef __ARM_PCS_VFP
yes
#endif

With a `yes' pattern in AC_EGREP_CPP.

Cheers,
Carlos.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]