mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
Bug#11835 CREATE FUNCTION crashes server
- Don't look for 'dl_open' if mysqld is compiled with "-all-static"
This commit is contained in:
parent
e75a62aeae
commit
6d4aa0e215
1 changed files with 28 additions and 14 deletions
42
configure.in
42
configure.in
|
@ -1632,16 +1632,35 @@ else
|
|||
fi
|
||||
#---END:
|
||||
|
||||
# Check for dlopen, needed for user definable functions
|
||||
# This must be checked after threads on AIX
|
||||
# We only need this for mysqld, not for the clients.
|
||||
# dlopen, dlerror
|
||||
case $with_mysqld_ldflags in
|
||||
|
||||
*-all-static*)
|
||||
# No need to check for dlopen when mysqld is linked with
|
||||
# -all-static as it won't be able to load any functions.
|
||||
|
||||
;;
|
||||
|
||||
*)
|
||||
# Check for dlopen, needed for user definable functions
|
||||
# This must be checked after threads on AIX
|
||||
# We only need this for mysqld, not for the clients.
|
||||
|
||||
my_save_LIBS="$LIBS"
|
||||
LIBS=""
|
||||
AC_CHECK_LIB(dl,dlopen)
|
||||
LIBDL=$LIBS
|
||||
LIBS="$my_save_LIBS"
|
||||
AC_SUBST(LIBDL)
|
||||
|
||||
my_save_LIBS="$LIBS"
|
||||
LIBS="$LIBS $LIBDL"
|
||||
AC_CHECK_FUNCS(dlopen dlerror)
|
||||
LIBS="$my_save_LIBS"
|
||||
|
||||
;;
|
||||
esac
|
||||
|
||||
my_save_LIBS="$LIBS"
|
||||
LIBS=""
|
||||
AC_CHECK_LIB(dl,dlopen)
|
||||
LIBDL=$LIBS
|
||||
LIBS="$my_save_LIBS"
|
||||
AC_SUBST(LIBDL)
|
||||
|
||||
# System characteristics
|
||||
case $SYSTEM_TYPE in
|
||||
|
@ -2005,11 +2024,6 @@ then
|
|||
fi]
|
||||
)
|
||||
|
||||
my_save_LIBS="$LIBS"
|
||||
LIBS="$LIBS $LIBDL"
|
||||
AC_CHECK_FUNCS(dlopen dlerror)
|
||||
LIBS="$my_save_LIBS"
|
||||
|
||||
# Check definition of gethostbyaddr_r (glibc2 defines this with 8 arguments)
|
||||
ac_save_CXXFLAGS="$CXXFLAGS"
|
||||
AC_CACHE_CHECK([style of gethost* routines], mysql_cv_gethost_style,
|
||||
|
|
Loading…
Reference in a new issue