build: Fix "make install" in MSVC builds with --enable-shared.

The problem was that intl-8.dll was not installed with execute permissions.

* gettext-runtime/intl/Makefile.am (install-exec-libintl): Use $(INSTALL),
not $(INSTALL_DATA), with libtool --mode=install.
* INSTALL.windows: Remove constraint to use --disable-shared on MSVC.
This commit is contained in:
Bruno Haible 2025-06-05 21:43:27 +02:00
parent f02b67c633
commit 26a6fa7729
2 changed files with 1 additions and 5 deletions

View File

@ -78,10 +78,6 @@ There are three ways to create binaries of this package for Microsoft Windows:
(api-ms-win*.dll) through the Windows Update mechanism, see
https://support.microsoft.com/en-us/kb/2999226 .
Another constraint is that shared libraries built as part of this package
may not work (at least with MSVC 14.0). Therefore, you will need to pass
the configure option '--disable-shared' when building this package.
This recipe requires MS Visual C/C++ 9.0 or newer.
You don't need the Visual Studio IDE, just the C/C++ tool chain.
As of 2016, you can install the MS Visual C/C++ 14.0 tool chain from

View File

@ -464,7 +464,7 @@ install-exec-local: install-exec-libintl
install-exec-libintl: libintl.la
$(mkdir_p) $(DESTDIR)$(libdir)
$(LIBTOOL) --mode=install \
$(INSTALL_DATA) libintl.la $(DESTDIR)$(libdir)/libintl.la; \
$(INSTALL) libintl.la $(DESTDIR)$(libdir)/libintl.la; \
if test "@RELOCATABLE@" = yes; then \
dependencies=`sed -n -e 's,^dependency_libs=\(.*\),\1,p' < $(DESTDIR)$(libdir)/libintl.la | sed -e "s,^',," -e "s,'\$$,,"`; \
if test -n "$$dependencies"; then \