php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #76403
Patch acinclude-macos revision 2018-07-20 00:57 UTC by kevin dot abel dot 0 at gmail dot com
Patch acinclude-macos.patch revision 2018-06-02 00:17 UTC by kevin dot abel dot 0 at gmail dot com

Patch acinclude-macos.patch for *Compile Issues Bug #76403

Patch version 2018-06-02 00:17 UTC

Return to Bug #76403 | Download this patch
Patch Revisions:

Developer: kevin.abel.0@gmail.com

diff --git a/acinclude.m4 b/acinclude.m4
index 1a692b72f4..ec104c2ccc 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -444,7 +444,11 @@ dnl
 dnl Adds a path to linkpath/runpath (LDFLAGS)
 dnl
 AC_DEFUN([PHP_ADD_LIBPATH],[
-  if test "$1" != "/usr/$PHP_LIBDIR" && test "$1" != "/usr/lib"; then
+  case "$1" in
+  "/usr/$PHP_LIBDIR"|"/usr/lib"[)] ;;
+  /Library/Developer/CommandLineTools/SDKs/*/usr/lib[)] ;;
+  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/*/usr/lib[)] ;;
+  *[)]
     PHP_EXPAND_PATH($1, ai_p)
     ifelse([$2],,[
       _PHP_ADD_LIBPATH_GLOBAL([$ai_p])
@@ -455,8 +459,8 @@ AC_DEFUN([PHP_ADD_LIBPATH],[
       else
         _PHP_ADD_LIBPATH_GLOBAL([$ai_p])
       fi
-    ])
-  fi
+    ]) ;;
+  esac
 ])
 
 dnl
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 17:01:32 2024 UTC