diff options
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 7 | ||||
-rw-r--r-- | ld/Makefile.am | 17 | ||||
-rw-r--r-- | ld/Makefile.in | 17 | ||||
-rw-r--r-- | ld/config.in | 5 |
4 files changed, 36 insertions, 10 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index c4d13d8..916c33d 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,10 @@ +2005-04-12 Alan Modra <amodra@bigpond.net.au> + + * Makefile.am: Run "make dep-am". + (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command. + * Makefile.in: Regenerate. + * config.in: Regenerate. + 2005-04-11 Alan Modra <amodra@bigpond.net.au> * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore diff --git a/ld/Makefile.am b/ld/Makefile.am index e3607e3..bf0d550 100644 --- a/ld/Makefile.am +++ b/ld/Makefile.am @@ -417,6 +417,15 @@ OFILES = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o \ STAGESTUFF = *.o ldscripts/* e*.c +# Disable -Werror, if it has been enabled, since old versions of bison/ +# yacc will produce working code which contain compile time warnings. +ldgram.o: + $(COMPILE) -c $< -Wno-error +ldlex.o: + $(COMPILE) -c $< -Wno-error +deffilep.o: + $(COMPILE) -c $< -Wno-error + # At the moment this is just a list of those emulation template files # that contain internationalised strings. EMULATION_FILES = emultempl/pe.em emultempl/armcoff.em @@ -1739,8 +1748,8 @@ ldctor.o: ldctor.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \ $(INCDIR)/bfdlink.h $(INCDIR)/safe-ctype.h ld.h $(INCDIR)/bin-bugs.h \ ldexp.h ldlang.h ldmisc.h ldgram.h ldmain.h ldctor.h -ldemul.o: ldemul.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ - $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \ +ldemul.o: ldemul.c config.h ../bfd/bfd.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/symcat.h sysdep.h $(INCDIR)/fopen-same.h \ ld.h $(INCDIR)/bin-bugs.h ldmisc.h ldexp.h ldlang.h \ ldfile.h ldemul.h ldmain.h ldemul-list.h ldexp.o: ldexp.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ @@ -1781,8 +1790,8 @@ ldwrite.o: ldwrite.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ $(INCDIR)/bfdlink.h $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h \ ld.h $(INCDIR)/bin-bugs.h ldexp.h ldlang.h ldwrite.h \ ldmisc.h ldgram.h ldmain.h -lexsup.o: lexsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ - $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \ +lexsup.o: lexsup.c config.h ../bfd/bfd.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/symcat.h sysdep.h $(INCDIR)/fopen-same.h \ $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h $(INCDIR)/bfdlink.h \ ld.h $(INCDIR)/bin-bugs.h ldmain.h ldmisc.h ldexp.h \ ldlang.h ldgram.h ldlex.h ldfile.h ldver.h ldemul.h \ diff --git a/ld/Makefile.in b/ld/Makefile.in index f5ef69d..a90f6cb 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -1165,6 +1165,15 @@ distclean-generic clean-generic maintainer-clean-generic clean \ mostlyclean distclean maintainer-clean +# Disable -Werror, if it has been enabled, since old versions of bison/ +# yacc will produce working code which contain compile time warnings. +ldgram.o: + $(COMPILE) -c $< -Wno-error +ldlex.o: + $(COMPILE) -c $< -Wno-error +deffilep.o: + $(COMPILE) -c $< -Wno-error + po/POTFILES.in: @MAINT@ Makefile for f in $(POTFILES); do echo $$f; done | LC_COLLATE= sort > tmp \ && mv tmp $(srcdir)/po/POTFILES.in @@ -2450,8 +2459,8 @@ ldctor.o: ldctor.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \ $(INCDIR)/bfdlink.h $(INCDIR)/safe-ctype.h ld.h $(INCDIR)/bin-bugs.h \ ldexp.h ldlang.h ldmisc.h ldgram.h ldmain.h ldctor.h -ldemul.o: ldemul.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ - $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \ +ldemul.o: ldemul.c config.h ../bfd/bfd.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/symcat.h sysdep.h $(INCDIR)/fopen-same.h \ ld.h $(INCDIR)/bin-bugs.h ldmisc.h ldexp.h ldlang.h \ ldfile.h ldemul.h ldmain.h ldemul-list.h ldexp.o: ldexp.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ @@ -2492,8 +2501,8 @@ ldwrite.o: ldwrite.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ $(INCDIR)/bfdlink.h $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h \ ld.h $(INCDIR)/bin-bugs.h ldexp.h ldlang.h ldwrite.h \ ldmisc.h ldgram.h ldmain.h -lexsup.o: lexsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ - $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \ +lexsup.o: lexsup.c config.h ../bfd/bfd.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/symcat.h sysdep.h $(INCDIR)/fopen-same.h \ $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h $(INCDIR)/bfdlink.h \ ld.h $(INCDIR)/bin-bugs.h ldmain.h ldmisc.h ldexp.h \ ldlang.h ldgram.h ldlex.h ldfile.h ldver.h ldemul.h \ diff --git a/ld/config.in b/ld/config.in index a905962..689a99c 100644 --- a/ld/config.in +++ b/ld/config.in @@ -154,6 +154,9 @@ /* Define to 1 if NLS is requested */ #undef ENABLE_NLS +/* Is the prototype for getopt in <unistd.h> in the expected format? */ +#undef HAVE_DECL_GETOPT + /* Use b modifier when opening binary files? */ #undef USE_BINARY_FOPEN @@ -175,5 +178,3 @@ /* Additional extension a shared object might have. */ #undef EXTRA_SHLIB_EXTENSION -/* Is the prototype for getopt in <unistd.h> in the expected format? */ -#undef HAVE_DECL_GETOPT |