From: Bruno Haible Date: Thu, 4 Jul 2019 14:27:33 +0000 (+0200) Subject: build: Fix build errors with MSVC. X-Git-Tag: v0.21~210 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fbe7b1906b65638cb3de683bc581d270b208cb7;p=thirdparty%2Fgettext.git build: Fix build errors with MSVC. * 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. --- diff --git a/gettext-tools/libgettextpo/Makefile.am b/gettext-tools/libgettextpo/Makefile.am index 483e12517..b4912cf0d 100644 --- a/gettext-tools/libgettextpo/Makefile.am +++ b/gettext-tools/libgettextpo/Makefile.am @@ -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 \ diff --git a/gettext-tools/libgettextpo/exported.sh.in b/gettext-tools/libgettextpo/exported.sh.in index 2e6b89ab6..be7fb38bd 100644 --- a/gettext-tools/libgettextpo/exported.sh.in +++ b/gettext-tools/libgettextpo/exported.sh.in @@ -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@ diff --git a/libtextstyle/lib/Makefile.am b/libtextstyle/lib/Makefile.am index 32b1a7c4f..cd33960b1 100644 --- a/libtextstyle/lib/Makefile.am +++ b/libtextstyle/lib/Makefile.am @@ -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 && \