mirror of
https://https.git.savannah.gnu.org/git/gettext.git
synced 2026-01-26 15:39:11 +00:00
gettext-runtime: Fix "make installcheck" failure on MSVC with --enable-shared.
* gettext-runtime/intl/Makefile.am (libintl.h): Insert '__declspec (dllimport)' in the variable declarations, like in libgnuintl.h.
This commit is contained in:
parent
eb587aa2a9
commit
39b426b503
@ -250,7 +250,13 @@ libintl.h: $(srcdir)/libgnuintl.in.h
|
||||
-e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \
|
||||
-e 's,@''HAVE_NEWLOCALE''@,@HAVE_NEWLOCALE@,g' \
|
||||
-e 's,@''ENHANCE_LOCALE_FUNCS''@,@ENHANCE_LOCALE_FUNCS@,g' \
|
||||
< $(srcdir)/libgnuintl.in.h > libintl.h
|
||||
< $(srcdir)/libgnuintl.in.h \
|
||||
| if test '@WOE32DLL@' = 1; then \
|
||||
sed -e 's/extern \([^()]*\);/extern __declspec (dllimport) \1;/'; \
|
||||
else \
|
||||
cat; \
|
||||
fi \
|
||||
| cat > libintl.h
|
||||
MOSTLYCLEANFILES += libintl.h
|
||||
|
||||
# The Automake generated .y.c rule is broken: When executed in a VPATH build,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user