[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/XS/configure.ac (perl_conf_LDFLAGS)
From: |
Gavin D. Smith |
Subject: |
branch master updated: * tp/Texinfo/XS/configure.ac (perl_conf_LDFLAGS) [MS-Windows]: Append extra flags to perl_conf_LDFLAGS after -no-undefined check, rather than setting a HOST_NEEDS_NO_UNDEFINED automake conditional. (lookup_perl_conf): No longer AC_SUBST perl config values as these values are no longer required in Makefile.am. |
Date: |
Thu, 23 Nov 2023 14:43:30 -0500 |
This is an automated email from the git hooks/post-receive script.
gavin pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new 95a5bcd100 * tp/Texinfo/XS/configure.ac (perl_conf_LDFLAGS)
[MS-Windows]: Append extra flags to perl_conf_LDFLAGS after -no-undefined
check, rather than setting a HOST_NEEDS_NO_UNDEFINED automake conditional.
(lookup_perl_conf): No longer AC_SUBST perl config values as these values are
no longer required in Makefile.am.
95a5bcd100 is described below
commit 95a5bcd1000f82375f89d34a4485fdc2fb2467b8
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Thu Nov 23 19:43:18 2023 +0000
* tp/Texinfo/XS/configure.ac (perl_conf_LDFLAGS) [MS-Windows]:
Append extra flags to perl_conf_LDFLAGS after -no-undefined check,
rather than setting a HOST_NEEDS_NO_UNDEFINED automake conditional.
(lookup_perl_conf): No longer AC_SUBST perl config values as these
values are no longer required in Makefile.am.
* tp/Texinfo/XS/Makefile.am (PLATFORM_LDFLAGS): No longer set
or refer to separately from perl_conf_LDFLAGS.
Confining changes to the compilation flags to configure.ac
potentially makes it easier to include these changes in configure
checks if it is ever found to be necessary.
---
ChangeLog | 15 +++++++++++++++
tp/Texinfo/XS/Makefile.am | 13 +------------
tp/Texinfo/XS/configure.ac | 22 +++++++++++-----------
3 files changed, 27 insertions(+), 23 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index a5e1c9b502..5ae66d4f9f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+2023-11-23 Gavin Smith <gavinsmith0123@gmail.com>
+
+ * tp/Texinfo/XS/configure.ac (perl_conf_LDFLAGS) [MS-Windows]:
+ Append extra flags to perl_conf_LDFLAGS after -no-undefined check,
+ rather than setting a HOST_NEEDS_NO_UNDEFINED automake conditional.
+ (lookup_perl_conf): No longer AC_SUBST perl config values as these
+ values are no longer required in Makefile.am.
+
+ * tp/Texinfo/XS/Makefile.am (PLATFORM_LDFLAGS): No longer set
+ or refer to separately from perl_conf_LDFLAGS.
+
+ Confining changes to the compilation flags to configure.ac
+ potentially makes it easier to include these changes in configure
+ checks if it is ever found to be necessary.
+
2023-11-22 Patrice Dumas <pertusus@free.fr>
* doc/texi2any_api.texi (Element Direction Information Type),
diff --git a/tp/Texinfo/XS/Makefile.am b/tp/Texinfo/XS/Makefile.am
index dbec30a00c..75c653467f 100644
--- a/tp/Texinfo/XS/Makefile.am
+++ b/tp/Texinfo/XS/Makefile.am
@@ -52,17 +52,6 @@ XSLIBS_LDFLAGS = -avoid-version -module
XSLIBS_LDFLAGS += $(perl_conf_LDFLAGS)
-if HOST_NEEDS_NO_UNDEFINED
- PLATFORM_LDFLAGS = -no-undefined -L$(PERL_INC) $(PERL_CONF_libperl)
- # The -no-undefined flag is for MS-Windows. See info node
- # `(gnulib)Libtool and Windows'. The -L and -l options after it show
- # where to find the undefined symbols.
-else
- PLATFORM_LDFLAGS =
-endif
-
-XSLIBS_LDFLAGS += $(PLATFORM_LDFLAGS)
-
########################## Test XS used in top source dir configure.ac
@@ -293,7 +282,7 @@ libtexinfoxs_la_SOURCES= \
libtexinfoxs_la_CPPFLAGS = -I$(srcdir)/main -I$(srcdir)/convert $(AM_CPPFLAGS)
$(XSLIBS_CPPFLAGS)
libtexinfoxs_la_CFLAGS = $(XSLIBS_CFLAGS)
libtexinfoxs_la_LIBADD = libtexinfo.la
-libtexinfoxs_la_LDFLAGS = -version-info 0:0:0 $(perl_conf_LDFLAGS)
$(PLATFORM_LDFLAGS) $(LTLIBINTL)
+libtexinfoxs_la_LDFLAGS = -version-info 0:0:0 $(perl_conf_LDFLAGS) $(LTLIBINTL)
# FIXME libtexinfo.so.* and libtexinfoxs.so.* are sought in system
# directories first (${libdir}) before the correct installed location, so
diff --git a/tp/Texinfo/XS/configure.ac b/tp/Texinfo/XS/configure.ac
index 8a1a3db01d..8b5573968f 100644
--- a/tp/Texinfo/XS/configure.ac
+++ b/tp/Texinfo/XS/configure.ac
@@ -40,7 +40,7 @@ AC_DEFUN([lookup_perl_conf],
[AC_MSG_CHECKING([Perl configuration value $1])
fetch_conf $1
AC_MSG_RESULT([$conf_value])
- AC_SUBST([PERL_CONF_$1], [$conf_value])
+ PERL_CONF_$1=$conf_value
])
AC_DEFUN([lookup_perl_conf_values],
@@ -125,9 +125,6 @@ if test x$disable_xs != xyes; then
AC_CONFIG_HEADERS([config.h:config.in])
fi # not disable_xs
-AC_SUBST([perl_conf_CFLAGS], [$perl_conf_CFLAGS])
-AC_SUBST([perl_conf_LDFLAGS], [$perl_conf_LDFLAGS])
-
AC_SUBST([PERL_INC], [$PERL_INC])
AC_SUBST([XSUBPPARGS], [$XSUBPPARGS])
@@ -153,13 +150,6 @@ GL_GNULIB_MDA_FDOPEN=0
GL_GNULIB_MDA_MKTEMP=0
GL_GNULIB_MDA_PUTENV=0
-host_needs_no_undefined=no
-case "$host" in *-mingw32 | *-mingw64 | *-msdosdjgpp | *-cygwin )
- host_needs_no_undefined=yes ;;
-esac
-AM_CONDITIONAL([HOST_NEEDS_NO_UNDEFINED],
- [test "x$host_needs_no_undefined" = "xyes"])
-
AM_CONDITIONAL([HAVE_ICONV],
[test "x$am_func_iconv" = "xyes"])
@@ -175,5 +165,15 @@ AM_CONDITIONAL([HAVE_ICONV],
CFLAGS=$PERL_EXT_CFLAGS
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.
+case "$host" in *-mingw32 | *-mingw64 | *-msdosdjgpp | *-cygwin )
+ perl_conf_LDFLAGS += -no-undefined -L$PERL_INC $PERL_CONF_libperl
+esac
+
+AC_SUBST([perl_conf_CFLAGS], [$perl_conf_CFLAGS])
+AC_SUBST([perl_conf_LDFLAGS], [$perl_conf_LDFLAGS])
+
AC_CONFIG_FILES([Makefile gnulib/lib/Makefile])
AC_OUTPUT