*) mod_socache_dc: use correct build variable MOD_SOCACHE_DC_LDADD
instead of MOD_SOCACHE_LDADD in build macro. [Rainer Jung]
+ *) mod_lua, mod_deflate: respect platform specific runpath linker
+ flag. [Rainer Jung]
+
Changes with Apache 2.3.13
*) ab: Support specifying the local address to use. PR 48930.
ap_save_includes=$INCLUDES
ap_save_ldflags=$LDFLAGS
ap_save_cppflags=$CPPFLAGS
+ ap_zlib_ldflags=""
if test "$ap_zlib_base" != "/usr"; then
APR_ADDTO(INCLUDES, [-I${ap_zlib_base}/include])
dnl put in CPPFLAGS temporarily so that AC_TRY_LINK below will work
CPPFLAGS="$CPPFLAGS $INCLUDES"
APR_ADDTO(LDFLAGS, [-L${ap_zlib_base}/lib])
+ APR_ADDTO(ap_zlib_ldflags, [-L${ap_zlib_base}/lib])
if test "x$ap_platform_runtime_link_flag" != "x"; then
APR_ADDTO(LDFLAGS, [$ap_platform_runtime_link_flag${ap_zlib_base}/lib])
+ APR_ADDTO(ap_zlib_ldflags, [$ap_platform_runtime_link_flag${ap_zlib_base}/lib])
fi
fi
APR_ADDTO(LIBS, [-lz])
AC_MSG_CHECKING([for zlib library])
AC_TRY_LINK([#include <zlib.h>], [int i = Z_OK;],
[AC_MSG_RESULT(found)
- APR_SETVAR(MOD_DEFLATE_LDADD, [-lz])],
+ APR_SETVAR(MOD_DEFLATE_LDADD, [$ap_zlib_ldflags -lz])],
[AC_MSG_RESULT(not found)
enable_deflate=no
INCLUDES=$ap_save_includes
LDFLAGS="-L$x/lib $LDFLAGS $lib_m"
AC_CHECK_LIB(lua5.1, luaL_newstate, [
LUA_LIBS="-L$x/lib -llua5.1 $lib_m"
+ if test "x$ap_platform_runtime_link_flag" != "x"; then
+ APR_ADDTO(LUA_LIBS, [$ap_platform_runtime_link_flag$x/lib])
+ fi
LUA_CFLAGS="-I$x/include/lua5.1"
])
CFLAGS=$save_CFLAGS
LDFLAGS="-L$x/lib/lua51 $LDFLAGS $lib_m"
AC_CHECK_LIB(lua, luaL_newstate, [
LUA_LIBS="-L$x/lib/lua51 -llua $lib_m"
+ if test "x$ap_platform_runtime_link_flag" != "x"; then
+ APR_ADDTO(LUA_LIBS, [$ap_platform_runtime_link_flag$x/lib/lua51])
+ fi
LUA_CFLAGS="-I$x/include/lua51"
])
CFLAGS=$save_CFLAGS
LDFLAGS="-L$x/lib $LDFLAGS $lib_m"
AC_CHECK_LIB(lua, luaL_newstate, [
LUA_LIBS="-L$x/lib -llua $lib_m"
+ if test "x$ap_platform_runtime_link_flag" != "x"; then
+ APR_ADDTO(LUA_LIBS, [$ap_platform_runtime_link_flag$x/lib])
+ fi
LUA_CFLAGS="-I$x/include"
])
CFLAGS=$save_CFLAGS