Use flex's -t option instead of --stdout
authorSimon Marchi <simon.marchi@ericsson.com>
Thu, 3 May 2018 21:29:14 +0000 (17:29 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Thu, 3 May 2018 21:33:08 +0000 (17:33 -0400)
As reported in

  https://sourceware.org/ml/gdb-patches/2018-05/msg00042.html

some old versions of flex (2.5.4) don't support the --stdout switch.
Use -t, which is an alias.

gdb/ChangeLog:

* Makefile.in (%.c: %.l): Use -t instead of --stdout.

gdb/ChangeLog
gdb/Makefile.in

index 1825c2c..1a44240 100644 (file)
@@ -1,3 +1,7 @@
+2018-05-03  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * Makefile.in (%.c: %.l): Use -t instead of --stdout.
+
 2018-05-03  Pedro Alves  <palves@redhat.com>
 
        * s390-linux-nat.c
index be76928..87d74a7 100644 (file)
@@ -2500,7 +2500,7 @@ po/$(PACKAGE).pot: force
          mv $@.new $@
 %.c: %.l
        if [ "$(FLEX)" ] && $(FLEX) --version >/dev/null 2>&1; then \
-           $(FLEX) --stdout $<  \
+           $(FLEX) -t $<  \
            | sed -e '/extern.*malloc/d' \
                -e '/extern.*realloc/d' \
                -e '/extern.*free/d' \