texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: * tp/Texinfo/XS/Makefile.am (libtexinfo_la_LDFLAG


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/XS/Makefile.am (libtexinfo_la_LDFLAGS), tp/Texinfo/XS/configure.ac (platform_LDFLAGS): add platform_LDFLAGS to contain -no-undefined on Windows to be used for shared libraries not linked against Perl.
Date: Sun, 22 Sep 2024 06:39:29 -0400

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new e5983f9720 * tp/Texinfo/XS/Makefile.am (libtexinfo_la_LDFLAGS), 
tp/Texinfo/XS/configure.ac (platform_LDFLAGS): add platform_LDFLAGS to contain 
-no-undefined on Windows to be used for shared libraries not linked against 
Perl.
e5983f9720 is described below

commit e5983f97209dd10653dd0ecfa5ff6517be3cab24
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun Sep 22 12:39:32 2024 +0200

    * tp/Texinfo/XS/Makefile.am (libtexinfo_la_LDFLAGS),
    tp/Texinfo/XS/configure.ac (platform_LDFLAGS): add platform_LDFLAGS to
    contain -no-undefined on Windows to be used for shared libraries not
    linked against Perl.
---
 ChangeLog                  | 7 +++++++
 tp/Texinfo/XS/Makefile.am  | 3 ++-
 tp/Texinfo/XS/configure.ac | 6 +++++-
 3 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index bb2a503393..abc0eacda7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-09-22  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/XS/Makefile.am (libtexinfo_la_LDFLAGS),
+       tp/Texinfo/XS/configure.ac (platform_LDFLAGS): add platform_LDFLAGS to
+       contain -no-undefined on Windows to be used for shared libraries not
+       linked against Perl.
+
 2024-09-22  Patrice Dumas  <pertusus@free.fr>
 
        * configure.ac (--enable-ptys-tests, PTYS_TESTS): add
diff --git a/tp/Texinfo/XS/Makefile.am b/tp/Texinfo/XS/Makefile.am
index d9a9537bda..f3fde3a317 100644
--- a/tp/Texinfo/XS/Makefile.am
+++ b/tp/Texinfo/XS/Makefile.am
@@ -214,7 +214,8 @@ EXTRA_DIST += main/global_unique_commands_case.c
 # locate include files under out-of-source builds.
 libtexinfo_la_CPPFLAGS = -I$(srcdir)/main -I$(srcdir)/parsetexi $(AM_CPPFLAGS) 
$(GNULIB_CPPFLAGS)
 libtexinfo_la_LIBADD = $(top_builddir)/gnulib/lib/libgnu.la
-libtexinfo_la_LDFLAGS = -version-info 0:0:0 $(LTLIBINTL) $(LTLIBICONV) 
$(LTLIBUNISTRING)
+# platform_LDFLAGS should be -no-undefined on Windows
+libtexinfo_la_LDFLAGS = -version-info 0:0:0 $(platform_LDFLAGS) $(LTLIBINTL) 
$(LTLIBICONV) $(LTLIBUNISTRING)
 
 BUILT_SOURCES=main/accent_tables_8bit_codepoints.c \
               main/cmd_normalization.c \
diff --git a/tp/Texinfo/XS/configure.ac b/tp/Texinfo/XS/configure.ac
index c15c6a62c6..f387089b9a 100644
--- a/tp/Texinfo/XS/configure.ac
+++ b/tp/Texinfo/XS/configure.ac
@@ -78,6 +78,7 @@ AC_ARG_VAR([PERL_EXT_CPPFLAGS], [C preprocessor flags for a 
Perl extension])
 AC_ARG_VAR([PERL_EXT_LDFLAGS], [Linker flags for a Perl extension])
 AC_ARG_VAR([PERL_EXT_CC], [Compiler for a Perl extension])
 
+platform_LDFLAGS=
 perl_conf_CFLAGS=
 perl_conf_LDFLAGS=
 XSUBPPARGS=
@@ -189,13 +190,16 @@ LDFLAGS=$PERL_EXT_LDFLAGS
 
 # Use the -no-undefined flag on MS-Windows.  See info node
 # `(gnulib)Libtool and Windows'.  The -L and -l options after it show
-# where to find the undefined symbols.
+# where to find the undefined symbols when linking against Perl.
 case "$host" in *-mingw32 | *-mingw64 | *-msdosdjgpp | *-cygwin )
   perl_conf_LDFLAGS="$perl_conf_LDFLAGS -no-undefined -L$PERL_INC 
$PERL_CONF_libperl"
+  # used for shared libraries not linked against Perl.
+  platform_LDFLAGS='-no-undefined'
 esac
 
 AC_SUBST([perl_conf_CFLAGS], [$perl_conf_CFLAGS])
 AC_SUBST([perl_conf_LDFLAGS], [$perl_conf_LDFLAGS])
+AC_SUBST([platform_LDFLAGS], [$platform_LDFLAGS])
 
 AC_CHECK_FUNCS(newlocale strxfrm_l)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]