mirror of
https://github.com/nginx/nginx.git
synced 2024-12-03 21:18:59 +08:00
test whether libdl is required for dynamic linking:
Solaris 10 has dlopen()/etc. in libc
This commit is contained in:
parent
225d47185a
commit
f794318d60
@ -31,7 +31,7 @@ if [ $OPENSSL != NONE ]; then
|
||||
|
||||
case "$NGX_SYSTEM" in
|
||||
SunOS|Linux)
|
||||
CORE_LIBS="$CORE_LIBS -ldl"
|
||||
CORE_LIBS="$CORE_LIBS $NGX_LIBDL"
|
||||
;;
|
||||
esac
|
||||
|
||||
@ -72,7 +72,7 @@ else
|
||||
|
||||
case "$NGX_SYSTEM" in
|
||||
SunOS)
|
||||
CORE_LIBS="$CORE_LIBS -ldl"
|
||||
CORE_LIBS="$CORE_LIBS $NGX_LIBDL"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
22
auto/unix
22
auto/unix
@ -185,6 +185,28 @@ if [ $ngx_found != yes ]; then
|
||||
fi
|
||||
|
||||
|
||||
ngx_feature="dlopen()"
|
||||
ngx_feature_name=
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <dlfcn.h>"
|
||||
ngx_feature_path=
|
||||
ngx_feature_libs=
|
||||
ngx_feature_test="dlopen(NULL, 0)"
|
||||
. auto/feature
|
||||
|
||||
|
||||
if [ $ngx_found != yes ]; then
|
||||
|
||||
ngx_feature="dlopen() in libdl"
|
||||
ngx_feature_libs="-ldl"
|
||||
. auto/feature
|
||||
|
||||
if [ $ngx_found = yes ]; then
|
||||
NGX_LIBDL="-ldl"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
ngx_feature="mmap(MAP_ANON|MAP_SHARED)"
|
||||
ngx_feature_name="NGX_HAVE_MAP_ANON"
|
||||
ngx_feature_run=yes
|
||||
|
Loading…
Reference in New Issue
Block a user