]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
build: Fix build errors with MSVC.
authorBruno Haible <bruno@clisp.org>
Thu, 4 Jul 2019 14:27:33 +0000 (16:27 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 13 Apr 2020 10:51:30 +0000 (12:51 +0200)
* gettext-tools/libgettextpo/exported.sh.in: Remove one level of eval.
* gettext-tools/libgettextpo/Makefile.am (config.h): Redirect compiler output to
stderr. Remove symbols that contain an '@'.
* libtextstyle/lib/Makefile.am (config.h): Likewise.

gettext-tools/libgettextpo/Makefile.am
gettext-tools/libgettextpo/exported.sh.in
libtextstyle/lib/Makefile.am

index 82f6fcf48f1f944baf53d935f6f3c469434569a9..972bf277dbb01a06fea7c91e51613a5f148c1597 100644 (file)
@@ -175,8 +175,8 @@ config.h: $(BUILT_SOURCES)
                  ;; \
              esac; \
            done; \
-         } 5>&1 \
-           | sed -e 's,.* ,,' | LC_ALL=C sort | LC_ALL=C uniq \
+         } 5>&1 1>&2 \
+           | sed -e 's,.* ,,' | grep -v '@' | LC_ALL=C sort | LC_ALL=C uniq \
            | sed -e 's,^obstack_free$$,__obstack_free,' \
            | sed -e 's,^\(.*\)$$,#define \1 libgettextpo_\1,' > config.h-t && \
          if test -f config.h; then \
index 2e6b89ab67ef3ee8385482796f975e0adcc94301..be7fb38bd32ba63e8b16faff9c080be42ff275bf 100644 (file)
@@ -1,6 +1,6 @@
 #! /bin/sh
 #
-# Copyright (C) 2006 Free Software Foundation, Inc.
+# Copyright (C) 2006, 2009, 2019 Free Software Foundation, Inc.
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -20,5 +20,4 @@
 # This is a separate script because $(GLOBAL_SYMBOL_PIPE) cannot be used in a
 # Makefile, since it may contain dollar signs.
 
-nm_cmd="@NM@ $1 | @GLOBAL_SYMBOL_PIPE@"
-eval $nm_cmd
+@NM@ "$1" | @GLOBAL_SYMBOL_PIPE@
index 32b1a7c4f70c7988c02a457f1b379335732d4818..cd33960b1d2a54e189cd19209b460850ac7517cf 100644 (file)
@@ -226,8 +226,8 @@ config.h: $(BUILT_SOURCES) libtextstyle.sym
                    ;; \
                esac; \
              done; \
-           } 5>&1 \
-             | sed -e 's,.* ,,' | LC_ALL=C sort | LC_ALL=C uniq \
+           } 5>&1 1>&2 \
+             | sed -e 's,.* ,,' | grep -v '@' | LC_ALL=C sort | LC_ALL=C uniq \
              | LC_ALL=C join -v 1 - libtextstyle.sym \
              | sed -e 's,^\(.*\)$$,#define \1 libtextstyle_\1,' > config.h-t; \
          } 6>&1 && \