Browse Source

libtool.m4: fix appending of -no_fixup_chains to allow_undefined_flag.

Ozkan Sezer 1 year ago
parent
commit
a0ec7c0906
2 changed files with 6 additions and 4 deletions
  1. 3 2
      acinclude/libtool.m4
  2. 3 2
      configure

+ 3 - 2
acinclude/libtool.m4

@@ -1087,9 +1087,10 @@ _LT_EOF
         10.[[012]],*|,*powerpc*-darwin[[5-8]]*)
         10.[[012]],*|,*powerpc*-darwin[[5-8]]*)
           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
           _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
           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
           fi
         ;;
         ;;
       esac
       esac

+ 3 - 2
configure

@@ -8215,9 +8215,10 @@ printf "%s\n" "$lt_cv_ld_force_load" >&6; }
         10.[012],*|,*powerpc*-darwin[5-8]*)
         10.[012],*|,*powerpc*-darwin[5-8]*)
           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
           _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
           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
           fi
         ;;
         ;;
       esac
       esac