Skip to content

Commit

Permalink
Remove unused PHP_SOLARIS_PIC_WEIRDNESS m4 macro
Browse files Browse the repository at this point in the history
This has been once used for Solaris systems and has been removed via
827ad65
  • Loading branch information
petk committed Feb 20, 2019
1 parent d936b2c commit 44b874a
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions acinclude.m4
Expand Up @@ -1505,36 +1505,6 @@ main() {
fi
])

dnl
dnl PHP_SOLARIS_PIC_WEIRDNESS
dnl
dnl Solaris requires main code to be position independent in order
dnl to let shared objects find symbols. Weird. Ugly.
dnl
dnl Must be run after all --with-NN options that let the user
dnl choose dynamic extensions, and after the gcc test.
dnl
AC_DEFUN([PHP_SOLARIS_PIC_WEIRDNESS],[
AC_MSG_CHECKING([whether -fPIC is required])
if test -n "$EXT_SHARED"; then
os=`uname -sr 2>/dev/null`
case $os in
"SunOS 5.6"|"SunOS 5.7"[)]
case $CC in
gcc*|egcs*)
CFLAGS="$CFLAGS -fPIC";;
*[)]
CFLAGS="$CFLAGS -fpic";;
esac
AC_MSG_RESULT([yes]);;
*[)]
AC_MSG_RESULT([no]);;
esac
else
AC_MSG_RESULT([no])
fi
])

dnl
dnl PHP_SYS_LFS
dnl
Expand Down

0 comments on commit 44b874a

Please sign in to comment.