--- texinfo-7.0.3/tp/Texinfo/XS/Makefile.am 2023-11-15 19:58:12.194296619 +0200 +++ texinfo-7.0.3/tp/Texinfo/XS/Makefile.am 2023-11-15 19:58:53.717835896 +0200 @@ -68,16 +68,8 @@ AM_CFLAGS += -DVERSION=\"$(VERSION)\" -DXS_VERSION=\"$(VERSION)\" AM_CFLAGS += -I$(PERL_INC) -if HOST_NEEDS_NO_UNDEFINED PLATFORM_LDFLAGS = -no-undefined -L$(PERL_INC) - PLATFORM_LIBADD = $(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 = - PLATFORM_LIBADD = -endif + PLATFORM_LIBADD = -lperl AM_LDFLAGS = -avoid-version -module $(PERL_CONF_ccdlflags) AM_LDFLAGS += $(PLATFORM_LDFLAGS)