mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
- applied fix from 4.0 configure.in required to build shared libraries
with static glibc installed
This commit is contained in:
15
configure.in
15
configure.in
@@ -481,7 +481,7 @@ AC_ARG_WITH(other-libc,
|
|||||||
# we need special flags, but we will have to add those later
|
# we need special flags, but we will have to add those later
|
||||||
STATIC_NSS_FLAGS="-lc -lnss_files -lnss_dns -lresolv"
|
STATIC_NSS_FLAGS="-lc -lnss_files -lnss_dns -lresolv"
|
||||||
STATIC_NSS_FLAGS="$STATIC_NSS_FLAGS $STATIC_NSS_FLAGS"
|
STATIC_NSS_FLAGS="$STATIC_NSS_FLAGS $STATIC_NSS_FLAGS"
|
||||||
OTHER_LIBC_LIB="-L$other_libc_lib"
|
OTHER_LIBC_LIB="-static -L$other_libc_lib"
|
||||||
static_nss=1
|
static_nss=1
|
||||||
else
|
else
|
||||||
# this is a dirty hack. We if we detect static nss glibc in the special
|
# this is a dirty hack. We if we detect static nss glibc in the special
|
||||||
@@ -529,7 +529,6 @@ fi
|
|||||||
|
|
||||||
AC_ARG_WITH(server-suffix,
|
AC_ARG_WITH(server-suffix,
|
||||||
[ --with-server-suffix Append value to the version string.],
|
[ --with-server-suffix Append value to the version string.],
|
||||||
# I heard that 'cut' isn't portable. Isn't there a better way?
|
|
||||||
[ MYSQL_SERVER_SUFFIX=`echo "$withval" | sed -e 's/^\(...................................\)..*$/\1/'` ],
|
[ MYSQL_SERVER_SUFFIX=`echo "$withval" | sed -e 's/^\(...................................\)..*$/\1/'` ],
|
||||||
[ MYSQL_SERVER_SUFFIX= ]
|
[ MYSQL_SERVER_SUFFIX= ]
|
||||||
)
|
)
|
||||||
@@ -2122,10 +2121,7 @@ then
|
|||||||
AC_DEFINE(THREAD_SAFE_CLIENT)
|
AC_DEFINE(THREAD_SAFE_CLIENT)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$static_nss" = "1"
|
CLIENT_LIBS="$CLIENT_LIBS $STATIC_NSS_FLAGS"
|
||||||
then
|
|
||||||
CLIENT_LIBS="$CLIENT_LIBS $STATIC_NSS_FLAGS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_SUBST(CLIENT_LIBS)
|
AC_SUBST(CLIENT_LIBS)
|
||||||
AC_SUBST(sql_client_dirs)
|
AC_SUBST(sql_client_dirs)
|
||||||
@@ -2275,11 +2271,8 @@ fi
|
|||||||
# I know to add the static NSS magic if we have static NSS libraries with
|
# I know to add the static NSS magic if we have static NSS libraries with
|
||||||
# glibc - Sasha
|
# glibc - Sasha
|
||||||
|
|
||||||
if test "$static_nss" = "1"
|
LDFLAGS="$LDFLAGS $OTHER_LIBC_LIB"
|
||||||
then
|
LIBS="$LIBS $STATIC_NSS_FLAGS"
|
||||||
LDFLAGS="$LDFLAGS -static $OTHER_LIBC_LIB"
|
|
||||||
LIBS="$LIBS $STATIC_NSS_FLAGS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_SUBST(sql_server_dirs)
|
AC_SUBST(sql_server_dirs)
|
||||||
AC_SUBST(thread_dirs)
|
AC_SUBST(thread_dirs)
|
||||||
|
Reference in New Issue
Block a user