This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: A new libio patch for linux
- To: hjl at lucon dot org (H.J. Lu)
- Subject: Re: A new libio patch for linux
- From: Ulrich Drepper <drepper at ipd dot info dot uni-karlsruhe dot de>
- Date: 10 Oct 1997 22:55:31 +0200
- Cc: steve at moonglade dot com (Steven J. Madsen), egcs at cygnus dot com
- References: <m0xJlrt-0004edC@ocean.lucon.org>
- Reply-To: drepper at ipd dot info dot uni-karlsruhe dot de (Ulrich Drepper)
hjl@lucon.org (H.J. Lu) writes:
> Index: libio/Makefile.in
> ===================================================================
> RCS file: /home/work/cvs/gnu/egcs/libio/Makefile.in,v
> retrieving revision 1.1.1.5
> diff -u -r1.1.1.5 Makefile.in
> --- Makefile.in 1997/10/01 19:55:50 1.1.1.5
> +++ Makefile.in 1997/10/01 20:39:15
> @@ -73,10 +73,14 @@
>
> $(LIBIO_OBJECTS): $(_G_CONFIG_H)
>
> -libio.a: $(_G_CONFIG_H) $(LIBIO_OBJECTS)
> +libio.a: $(_G_CONFIG_H) $(LIBIO_OBJECTS) empty.o
> -rm -rf libio.a
> - $(AR) $(AR_FLAGS) libio.a $(LIBIO_OBJECTS)
> + $(AR) $(AR_FLAGS) libio.a $(LIBIO_OBJECTS) \
> + `test x = x"$(LIBIO_OBJECTS)" && echo empty.o`
> $(RANLIB) libio.a
> +
> +empty.c: Makefile
> + echo '/* empty file */' > empty.c
Why this extra code? As far as I know we don't use it anywhere (e.g.,
libiberty). Which platform is that broken? Onl yon Linux the `ar'
command line can be empty and in since Liux uses GNU ld this shouldn't
be a problem.
-- Uli
---------------. drepper@cygnus.com ,-. Rubensstrasse 5
Ulrich Drepper \ ,-------------------' \ 76149 Karlsruhe/Germany
Cygnus Solutions `--' drepper@gnu.ai.mit.edu `------------------------