With current development branch, 'allow_undefined_flag' in the libtool script generated after running configure looked like this: allow_undefined_flag="\$_lt_dar_allow_undefined \$wl-no_fixup_chains"
The solution I ended up with and applied in SDL is the following: (also attached as I'm sure gmail will mangle the patch) Any better solution is welcome, of course. diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 31f1be0..5357a3d 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -1089,9 +1089,10 @@ _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='$_lt_dar_allow_undefined $wl-no_fixup_chains' + _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup $wl-no_fixup_chains' + else + _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' fi ;; esac
From 6bf0f2866144135dc52777d63ffbd74772a987f8 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer <seze...@gmail.com> Date: Sat, 29 Jun 2024 17:51:56 +0300 Subject: [PATCH] libtool.m4: fix appending of -no_fixup_chains to _lt_dar_allow_undefined --- m4/libtool.m4 | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 31f1be0..5357a3d 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -1089,9 +1089,10 @@ _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='$_lt_dar_allow_undefined $wl-no_fixup_chains' + _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup $wl-no_fixup_chains' + else + _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' fi ;; esac -- 1.7.1