diff options
Diffstat (limited to 'ld/Makefile.am')
-rw-r--r-- | ld/Makefile.am | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ld/Makefile.am b/ld/Makefile.am index bf0d550..8053681 100644 --- a/ld/Makefile.am +++ b/ld/Makefile.am @@ -14,6 +14,7 @@ YFLAGS = -d LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi` WARN_CFLAGS = @WARN_CFLAGS@ +NO_WERROR = @NO_WERROR@ AM_CFLAGS = $(WARN_CFLAGS) # We put the scripts in the directory $(scriptdir)/ldscripts. @@ -420,11 +421,11 @@ 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 + $(COMPILE) -c $< $(NO_WERROR) ldlex.o: - $(COMPILE) -c $< -Wno-error + $(COMPILE) -c $< $(NO_WERROR) deffilep.o: - $(COMPILE) -c $< -Wno-error + $(COMPILE) -c $< $(NO_WERROR) # At the moment this is just a list of those emulation template files # that contain internationalised strings. |