Skip to content

Commit

Permalink
Fix #76403: MacOS compillation incorrectly linking to system libs
Browse files Browse the repository at this point in the history
  • Loading branch information
javian committed Aug 27, 2018
1 parent efb86ae commit acb9004
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions acinclude.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand All @@ -455,8 +459,8 @@ AC_DEFUN([PHP_ADD_LIBPATH],[
else
_PHP_ADD_LIBPATH_GLOBAL([$ai_p])
fi
])
fi
]) ;;
esac
])

dnl
Expand Down

0 comments on commit acb9004

Please sign in to comment.