From c5b665df10effdd8680c9e37fe73c9171ad1bee2 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 1 Jul 2019 04:59:56 +0200 Subject: build: Fix build errors with MSVC. * lib/exported.sh.in: Remove one level of eval. * lib/Makefile.am (config.h): Redirect compiler output to stderr. Remove symbols that contain an '@'. --- lib/Makefile.am | 4 ++-- lib/exported.sh.in | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/Makefile.am b/lib/Makefile.am index 4e8f3f3..640b2cb 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -302,8 +302,8 @@ config.h: $(BUILT_SOURCES) $(srcdir)/libunistring.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 - $(srcdir)/libunistring.sym \ | grep -v '^libintl_locale' \ | sed -e 's,^\(.*\)$$,#define \1 libunistring_\1,' > config.h-t; \ diff --git a/lib/exported.sh.in b/lib/exported.sh.in index 1e5fdc0..be7fb38 100644 --- a/lib/exported.sh.in +++ b/lib/exported.sh.in @@ -1,6 +1,6 @@ #! /bin/sh # -# Copyright (C) 2006, 2009 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@ -- cgit v1.2.1