# SDL\_image: libtool: backported macOS 11 support:

**URL:** <https://discourse.libsdl.org/t/sdl-image-libtool-backported-macos-11-support/33953>\
**Category:** SDL Commits\
**Created:** [December 3, 2021, 3:38pm UTC](https://discourse.libsdl.org/t/sdl-image-libtool-backported-macos-11-support/33953 "2021-12-03T15:38:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [December 3, 2021, 3:38pm UTC](https://discourse.libsdl.org/t/sdl-image-libtool-backported-macos-11-support/33953/1 "2021-12-03T15:38:54Z")

</div>

> <https://github.com/libsdl-org/SDL_image/commit/8b65281773996d79d98c24442c716bb2f0810f9e>
>
> https://github.com/macports/macports-ports/blob/master/devel/libtool/files/dynam…ic\_lookup-11.patch
> http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=commitdiff;h=9e8c882517082fe5755f2524d23efb02f1522490
> http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=commitdiff;h=8f4bdbda0a0c85cf6375a4c7546b83eb3fb596d3
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44605
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44684

```diff
From 8b65281773996d79d98c24442c716bb2f0810f9e Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Fri, 3 Dec 2021 17:50:56 +0300
Subject: [PATCH] libtool: backported macOS 11 support:

https://github.com/macports/macports-ports/blob/master/devel/libtool/files/dynamic_lookup-11.patch
http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=commitdiff;h=9e8c882517082fe5755f2524d23efb02f1522490
http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=commitdiff;h=8f4bdbda0a0c85cf6375a4c7546b83eb3fb596d3
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44605
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44684
---
 acinclude/libtool.m4 | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/acinclude/libtool.m4 b/acinclude/libtool.m4
index 13fb46c..076a2a2 100644
--- a/acinclude/libtool.m4
+++ b/acinclude/libtool.m4
@@ -947,16 +947,11 @@ m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
     darwin1.*)
       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
- darwin*) # darwin 5.x on
- # if running on 10.5 or later, the deployment target defaults
- # 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]]*)
- _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
-	10.[[012]]*)
+ darwin*)
+ case ${MACOSX_DEPLOYMENT_TARGET},$host in
+	10.[[012]],*|,*powerpc*-darwin[[5-8]]*)
 	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
-	10.*)
+	*)
 	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
       esac
     ;;

```
