This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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]

AC_NO_EXECUTABLES in libc/machine/sh


With the 2.13->2.59 change, it seems that sh-elf has broken as gcc is
trying to do a test compile in libc/machine/sh to satisfy
prerequisites for AC_EGREP_CPP.  Of course that fails as we're still
building the C library.  A simple addition of AC_NO_EXECUTABLES seems
to get around that.  However, in a local discussion, one of us also
noted that the objects in that directory don't seem to be correctly
overriding the generic C implementations of those functions, due to
new object naming conventions.  We're not sure what to do about that.
Furthermore, another one of us noted that the AC_NO_EXECUTABLES macro
is not documented in autoconf, so we're not even sure this is the
right fix.  Also, perhaps this macro should go in a common file?
Anyway, comments welcome.

	* libc/machine/sh/configure.in: Avoid link tests.
	* libc/machine/sh/configure: Regenerate.

Index: configure.in
===================================================================
RCS file: /cvs/src/src/newlib/libc/machine/sh/configure.in,v
retrieving revision 1.3
diff -p -U3 -r1.3  configure.in
--- configure.in	13 Apr 2006 19:56:26 -0000	1.3
+++ configure.in	24 Apr 2006 18:33:42 -0000
@@ -10,6 +10,8 @@ AC_CONFIG_AUX_DIR(../../../..)
 
 NEWLIB_CONFIGURE(../../..)
 
+AC_NO_EXECUTABLES
+
 AC_EGREP_CPP([sh5], [
 #if __SH5__
   sh5


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