GNU bug report logs - #44684
libtool.m4 linker flag selection does not work for macOS Big Sur

Previous Next

Package: libtool;

Reported by: JRR <juergen.reuter <at> desy.de>

Date: Mon, 16 Nov 2020 13:52:01 UTC

Severity: normal

To reply to this bug, email your comments to 44684 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-libtool <at> gnu.org:
bug#44684; Package libtool. (Mon, 16 Nov 2020 13:52:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to JRR <juergen.reuter <at> desy.de>:
New bug report received and forwarded. Copy sent to bug-libtool <at> gnu.org. (Mon, 16 Nov 2020 13:52:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: JRR <juergen.reuter <at> desy.de>
To: bug-libtool <at> gnu.org, libtool-patches <at> gnu.org
Subject: libtool.m4 linker flag selection does not work for macOS Big Sur
Date: Mon, 16 Nov 2020 14:51:18 +0100
Hi all,
it seems that the setup in
lines 1065-1083 in m4/libtool.m4
(cf. below) do not work for macOS Big Sur because they changed the major 
development version
of the macOS. When I am linking my programs, I need
-Wl,-undefined, -Wl,-dynamic_lookup
but I end up with
-Wl,-flat_namespace -Wl,-suppress
When I run my own configure with
MACOSX_DEPLOYMOMENT_TARGET='10.16' everything works again.
I provided a potential patch below, with two changes, the first assumes
the MACOSX_DEPLOYMENT_TARGET that libtool seems to default to,
namely 10.0, where now we have to take care of the fact that macOS
changed from darwin19.x -> darwin20.1
The second change accounts for a correct setting if someone sets
MACOSX_DEPLOYMENT_TARGET='11.0'
Probably someone else has already reported that issue.
Cheers,
    JRR (Juergen Reuter)

$ git diff
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index f2d1f398..be9d50f3 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -1072,11 +1072,11 @@ _LT_EOF
       # to the OS version, if on x86, and 10.4, the deployment
       # target defaults to 10.4. Don't you love it?
       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
-    10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
+    10.0,*86*-darwin8*|10.0,*-darwin[[912]]*)
       _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
     10.[[012]][[,.]]*)
       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined 
${wl}suppress' ;;
-    10.*)
+    10.*|11.*)
       _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
       esac
     ;;





-- 
--
---------------------------------
Juergen Reuter
DESY Theory Group, Bldg. 2a
Notkestr. 85
22607 Hamburg, GERMANY
Tel +49 (0)40 8998 3895
Fax +49 (0)40 8998 2777
skype: jr_reuter
---------------------------------





Information forwarded to bug-libtool <at> gnu.org:
bug#44684; Package libtool. (Mon, 16 Nov 2020 16:23:02 GMT) Full text and rfc822 format available.

Message #8 received at 44684 <at> debbugs.gnu.org (full text, mbox):

From: Ryan Schmidt <libtool <at> ryandesign.com>
To: JRR <juergen.reuter <at> desy.de>
Cc: 44684 <at> debbugs.gnu.org, libtool-patches <at> gnu.org
Subject: Re: bug#44684: libtool.m4 linker flag selection does not work for
 macOS Big Sur
Date: Mon, 16 Nov 2020 10:22:12 -0600
Duplicate of #44605.





Information forwarded to bug-libtool <at> gnu.org:
bug#44684; Package libtool. (Fri, 08 Jan 2021 15:29:01 GMT) Full text and rfc822 format available.

Message #11 received at 44684 <at> debbugs.gnu.org (full text, mbox):

From: Ozkan Sezer <sezeroz <at> gmail.com>
To: 44684 <at> debbugs.gnu.org
Cc: JRR <juergen.reuter <at> desy.de>, Ryan Schmidt <libtool <at> ryandesign.com>,
 libtool-patches <at> gnu.org
Subject: Re: bug#44684: libtool.m4 linker flag selection does not work for
 macOS Big Sur
Date: Fri, 8 Jan 2021 18:28:00 +0300
On 11/16/20, Ryan Schmidt <libtool <at> ryandesign.com> wrote:
> Duplicate of #44605.

Be that as it may, but this #44684 has, as it seems, a sensible
patch.  Shall no one review it?




Information forwarded to bug-libtool <at> gnu.org:
bug#44684; Package libtool. (Fri, 08 Jan 2021 16:37:02 GMT) Full text and rfc822 format available.

Message #14 received at 44684 <at> debbugs.gnu.org (full text, mbox):

From: Ryan Schmidt <libtool <at> ryandesign.com>
To: 44684 <at> debbugs.gnu.org
Subject: Re: bug#44684: libtool.m4 linker flag selection does not work for 
 macOS Big Sur
Date: Fri, 8 Jan 2021 10:36:10 -0600
The fix proposed here is undesirable because the same problem will happen again next year when Apple releases macOS 12.

I suggest using the fix I proposed in #44605 instead.





Information forwarded to bug-libtool <at> gnu.org:
bug#44684; Package libtool. (Fri, 08 Jan 2021 17:00:02 GMT) Full text and rfc822 format available.

Message #17 received at 44684 <at> debbugs.gnu.org (full text, mbox):

From: Ozkan Sezer <sezeroz <at> gmail.com>
To: 44684 <at> debbugs.gnu.org
Cc: Ryan Schmidt <libtool <at> ryandesign.com>
Subject: Re: bug#44684: libtool.m4 linker flag selection does not work for
 macOS Big Sur
Date: Fri, 8 Jan 2021 19:59:05 +0300
On 1/8/21, Ryan Schmidt <libtool <at> ryandesign.com> wrote:
> The fix proposed here is undesirable because the same problem will happen
> again next year when Apple releases macOS 12.
>
> I suggest using the fix I proposed in #44605 instead.

Is there an agreed-upon and final version of a patch from #44605?




Information forwarded to bug-libtool <at> gnu.org:
bug#44684; Package libtool. (Fri, 08 Jan 2021 17:25:02 GMT) Full text and rfc822 format available.

Message #20 received at 44684 <at> debbugs.gnu.org (full text, mbox):

From: Ryan Schmidt <libtool <at> ryandesign.com>
To: Ozkan Sezer <sezeroz <at> gmail.com>
Cc: 44684 <at> debbugs.gnu.org
Subject: Re: bug#44684: libtool.m4 linker flag selection does not work for
 macOS Big Sur
Date: Fri, 8 Jan 2021 11:24:42 -0600
I've posted my recommended final fix there.






This bug report was last modified 4 years and 213 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.