This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


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

PATCH: restore gen-aout to bootstrap on non-glibc targets


Looks like gen-aout hasn't been used in at least two years.

Probably nothing apart from the glibc does provide correct stuff for _.
I believe that providing i18n support for gen-aout is of dubious value,
considering that one needs to read code to make use of it, but anyways...

There is no actual new code, the fragment is taken from other parts of
binutils.

With this, I can at least bootstrap gen-aout on OpenBSD.

(I'd gather a copyright assignment isn't strictly needed for this patch,
considering its triviality.  My paperwork is currently in transit, e.g., 
I should have a copyright assignment for binutils and gdb as soon as the 
FSF notices my application).

Tue Aug  1 14:48:15 CEST 2000	Marc Espie <espie@openbsd.org>

	* Makefile.in:  Add correct search path for gen-aout.
	* gen-aout.c:  Add correct defines to handle i18n.

*** binutils-2.10.orig/bfd/Makefile.in	Wed Apr 12 01:58:39 2000
--- binutils/bfd/Makefile.in	Mon Jul 31 14:39:42 2000
***************
*** 1124,1130 ****
  aout-params.h: gen-aout
  	./gen-aout host > aout-params.h
  gen-aout: $(srcdir)/gen-aout.c Makefile
! 	$(CC) -o gen-aout $(CFLAGS) $(LFLAGS) $(srcdir)/gen-aout.c
  
  $(BFD_H): stmp-bfd-h ; @true
  
--- 1124,1130 ----
  aout-params.h: gen-aout
  	./gen-aout host > aout-params.h
  gen-aout: $(srcdir)/gen-aout.c Makefile
! 	$(CC) -o gen-aout $(CSEARCH) $(CFLAGS) $(LFLAGS) $(srcdir)/gen-aout.c
  
  $(BFD_H): stmp-bfd-h ; @true
  
*** binutils-2.10.orig/bfd/gen-aout.c	Mon May  3 09:28:57 1999
--- binutils/bfd/gen-aout.c	Mon Jul 31 14:38:04 2000
***************
*** 17,24 ****
--- 17,49 ----
  along with this program; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
  
+ #include "config.h"
+ #include <sys/types.h>
  #include "/usr/include/a.out.h"
  #include <stdio.h>
+ 
+ #ifdef HAVE_LOCALE_H
+ # include <locale.h>
+ #endif
+ 
+ #ifdef ENABLE_NLS
+ # include <libintl.h>
+ # define _(String) gettext (String)
+ # ifdef gettext_noop
+ #  define N_(String) gettext_noop (String)
+ # else
+ #  define N_(String) (String)
+ # endif
+ #else
+ /* Stubs that do something close enough.  */
+ # define textdomain(String) (String)
+ # define gettext(String) (String)
+ # define dgettext(Domain,Message) (Message)
+ # define dcgettext(Domain,Message,Type) (Message)
+ # define bindtextdomain(Domain,Directory) (Domain)
+ # define _(String) (String)
+ # define N_(String) (String)
+ #endif
  
  int
  main (argc, argv)

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