This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
{PATCH] Do not override configure decision about inhibit_libc
- From: Momchil Velikov <velco at fadata dot bg>
- To: gcc-patches at gcc dot gnu dot org
- Date: 10 Jul 2002 11:52:04 +0300
- Subject: {PATCH] Do not override configure decision about inhibit_libc
Hi there,
The target sh-elf fails to build if there are no target headers
available. The problem is in embed-bb.c, which undefines inhibit_libc.
Please, consider the following patch.
~velco
2002-07-10 Momchil Velikov <velco@fadata.bg>
* config/sh/t-sh (embed-bb.c): Do not override configure decision
about inhibit_libc.
Index: t-sh
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sh/t-sh,v
retrieving revision 1.14
diff -u -d -p -r1.14 t-sh
--- t-sh 18 Jun 2002 19:56:54 -0000 1.14
+++ t-sh 10 Jul 2002 08:44:57 -0000
@@ -6,9 +6,8 @@ LIB1ASMFUNCS = _ashiftrt _ashiftrt_n _as
LIB2FUNCS_EXTRA=embed-bb.c
embed-bb.c: $(srcdir)/libgcc2.c
- echo '#ifdef inhibit_libc' > $@
+ echo '#ifndef inhibit_libc' > $@
echo '#define L_bb' >> $@
- echo '#undef inhibit_libc' >> $@
cat $< >> $@
echo '#endif' >> $@