Browse Source

autotools, cmake, macOS: Do not use the system iconv() by default

backport from PR #9676 by @flibitijibibo

(cherry picked from commit d8fbeec096c91c180b3b3656af60ac76350e3f34)
Ozkan Sezer 11 months ago
parent
commit
dd42795131
3 changed files with 3 additions and 3 deletions
  1. 1 1
      CMakeLists.txt
  2. 1 1
      configure
  3. 1 1
      configure.ac

+ 1 - 1
CMakeLists.txt

@@ -241,7 +241,7 @@ endif()
 if(UNIX OR MINGW OR MSYS OR (USE_CLANG AND NOT WINDOWS) OR VITA OR PSP OR PS2 OR N3DS)
   set(OPT_DEF_LIBC ON)
 endif()
-if(WINDOWS OR IOS OR TVOS)
+if(WINDOWS OR DARWIN OR MACOSX OR IOS OR TVOS)
   set(SDL_SYSTEM_ICONV_DEFAULT OFF)
 else()
   set(SDL_SYSTEM_ICONV_DEFAULT ON)

+ 1 - 1
configure

@@ -18816,7 +18816,7 @@ fi
 
 enable_system_iconv_default=yes
 case "$host" in
-  *-*-cygwin*|*-*-mingw*)
+  *-*-cygwin*|*-*-mingw*|*-*-darwin*|*-ios-*)
     enable_system_iconv_default=no
     ;;
 esac

+ 1 - 1
configure.ac

@@ -322,7 +322,7 @@ AC_ARG_ENABLE(libc,
 dnl See whether we are allowed to use system iconv
 enable_system_iconv_default=yes
 case "$host" in
-  *-*-cygwin*|*-*-mingw*)
+  *-*-cygwin*|*-*-mingw*|*-*-darwin*|*-ios-*)
     enable_system_iconv_default=no
     ;;
 esac