libtool
[Top][All Lists]
Advanced

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

Re: -no_fixup_chains patch


From: Ileana Dumitrescu
Subject: Re: -no_fixup_chains patch
Date: Thu, 4 Jul 2024 16:54:03 +0300
User-agent: Mozilla Thunderbird

On 03/07/2024 21:28, Ozkan Sezer wrote:
On Wed, Jul 3, 2024 at 6:42 PM Ileana Dumitrescu
<ileanadumitrescu95@gmail.com> wrote:

On 02/07/2024 22:01, Václav Haisman wrote:
On 28. 06. 24 0:41, Ozkan Sezer wrote:
[Sorry, I seem to have deleted the mailing list message from my inbox]

Regarding -no_fixup_chains patch i.e.

http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=commitdiff;h=3d1baeeef90a6b9e16c545babe833f28dca155a7

Is '+=' universally supported?? Maybe change to something like the
following??

Is there a reason not to use AS_VAR_APPEND?
(https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Polymorphic-Variables.html)


I do not think there is a reason not to, so I generated a patch for it:

diff --git a/m4/libtool.m4 b/m4/libtool.m4
index e9eef32f..36e5bf4e 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -1089,10 +1089,9 @@ _LT_EOF
           10.[[012]],*|,*powerpc*-darwin[[5-8]]*)
             _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined
${wl}suppress' ;;
           *)
+          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
             if test yes = "$lt_cv_support_no_fixup_chains"; then
-            _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup 
$wl-no_fixup_chains'
-          else
-            _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
+            AS_VAR_APPEND([_lt_dar_allow_undefined], [' $wl-no_fixup_chains'])
             fi
           ;;
         esac
--

It should result in:
allow_undefined_flag="\$wl-undefined \${wl}dynamic_lookup
\$wl-no_fixup_chains"

Seems to work for me. IMO, it is a bit of an extravaganza, but I have no
strong no feelings against it...

However, if you guys do this: AS_VAR_APPEND requires autoconf 2.64. What
is the minimum required autoconf version for libtool.m4?

The current minimum autoconf version required is 2.62 for libtool.m4.
For bootstrapping libtool, it requires 2.64 already, and standalone
libtool needs 2.59 of autoconf. I do not think it should be an issue to
bump the required minimum autoconf version for libtool.m4 from 2.62 to
2.64, but tell me if there are concerns.

--
Ileana Dumitrescu

GPG Public Key: FA26 CA78 4BE1 8892 7F22 B99F 6570 EA01 146F 7354

Attachment: OpenPGP_0x6570EA01146F7354.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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