mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
add rpath for Solaris
This commit is contained in:
parent
4b96baa417
commit
274b63ec34
@ -77,7 +77,6 @@ if [ $PCRE != NONE ]; then
|
|||||||
CORE_DEPS="$CORE_DEPS $PCRE/pcre.h"
|
CORE_DEPS="$CORE_DEPS $PCRE/pcre.h"
|
||||||
LINK_DEPS="$LINK_DEPS $PCRE/.libs/libpcre.a"
|
LINK_DEPS="$LINK_DEPS $PCRE/.libs/libpcre.a"
|
||||||
CORE_LIBS="$CORE_LIBS $PCRE/.libs/libpcre.a"
|
CORE_LIBS="$CORE_LIBS $PCRE/.libs/libpcre.a"
|
||||||
#CORE_LIBS="$CORE_LIBS -L $PCRE/.libs -lpcre"
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
@ -111,7 +110,13 @@ else
|
|||||||
ngx_feature_run=no
|
ngx_feature_run=no
|
||||||
ngx_feature_incs="#include <pcre.h>"
|
ngx_feature_incs="#include <pcre.h>"
|
||||||
ngx_feature_path="/usr/local/include"
|
ngx_feature_path="/usr/local/include"
|
||||||
|
|
||||||
|
if [ $NGX_RPATH = YES ]; then
|
||||||
|
ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lpcre"
|
||||||
|
else
|
||||||
ngx_feature_libs="-L/usr/local/lib -lpcre"
|
ngx_feature_libs="-L/usr/local/lib -lpcre"
|
||||||
|
fi
|
||||||
|
|
||||||
ngx_feature_test="pcre *re;
|
ngx_feature_test="pcre *re;
|
||||||
re = pcre_compile(NULL, 0, NULL, 0, NULL)"
|
re = pcre_compile(NULL, 0, NULL, 0, NULL)"
|
||||||
. auto/feature
|
. auto/feature
|
||||||
@ -160,7 +165,13 @@ else
|
|||||||
ngx_feature_run=no
|
ngx_feature_run=no
|
||||||
ngx_feature_incs="#include <pcre.h>"
|
ngx_feature_incs="#include <pcre.h>"
|
||||||
ngx_feature_path="/usr/pkg/include"
|
ngx_feature_path="/usr/pkg/include"
|
||||||
|
|
||||||
|
if [ $NGX_RPATH = YES ]; then
|
||||||
|
ngx_feature_libs="-R/usr/pkg/lib -L/usr/pkg/lib -lpcre"
|
||||||
|
else
|
||||||
ngx_feature_libs="-L/usr/pkg/lib -lpcre"
|
ngx_feature_libs="-L/usr/pkg/lib -lpcre"
|
||||||
|
fi
|
||||||
|
|
||||||
ngx_feature_test="pcre *re;
|
ngx_feature_test="pcre *re;
|
||||||
re = pcre_compile(NULL, 0, NULL, 0, NULL)"
|
re = pcre_compile(NULL, 0, NULL, 0, NULL)"
|
||||||
. auto/feature
|
. auto/feature
|
||||||
@ -185,7 +196,13 @@ else
|
|||||||
ngx_feature_run=no
|
ngx_feature_run=no
|
||||||
ngx_feature_incs="#include <pcre.h>"
|
ngx_feature_incs="#include <pcre.h>"
|
||||||
ngx_feature_path="/opt/local/include"
|
ngx_feature_path="/opt/local/include"
|
||||||
|
|
||||||
|
if [ $NGX_RPATH = YES ]; then
|
||||||
|
ngx_feature_libs="-R/opt/local/lib -L/opt/local/lib -lpcre"
|
||||||
|
else
|
||||||
ngx_feature_libs="-L/opt/local/lib -lpcre"
|
ngx_feature_libs="-L/opt/local/lib -lpcre"
|
||||||
|
fi
|
||||||
|
|
||||||
ngx_feature_test="pcre *re;
|
ngx_feature_test="pcre *re;
|
||||||
re = pcre_compile(NULL, 0, NULL, 0, NULL)"
|
re = pcre_compile(NULL, 0, NULL, 0, NULL)"
|
||||||
. auto/feature
|
. auto/feature
|
||||||
|
@ -23,6 +23,8 @@ NGX_CC_OPT=
|
|||||||
NGX_LD_OPT=
|
NGX_LD_OPT=
|
||||||
CPU=NO
|
CPU=NO
|
||||||
|
|
||||||
|
NGX_RPATH=NO
|
||||||
|
|
||||||
NGX_TEST_BUILD_DEVPOLL=NO
|
NGX_TEST_BUILD_DEVPOLL=NO
|
||||||
NGX_TEST_BUILD_EVENTPORT=NO
|
NGX_TEST_BUILD_EVENTPORT=NO
|
||||||
NGX_TEST_BUILD_EPOLL=NO
|
NGX_TEST_BUILD_EPOLL=NO
|
||||||
|
@ -9,6 +9,8 @@ CORE_DEPS="$UNIX_DEPS $SOLARIS_DEPS"
|
|||||||
CORE_SRCS="$UNIX_SRCS $SOLARIS_SRCS "
|
CORE_SRCS="$UNIX_SRCS $SOLARIS_SRCS "
|
||||||
CORE_LIBS="$CORE_LIBS -lsocket -lnsl -lrt"
|
CORE_LIBS="$CORE_LIBS -lsocket -lnsl -lrt"
|
||||||
|
|
||||||
|
NGX_RPATH=YES
|
||||||
|
|
||||||
# Solaris's make does not support a blank line between target and rules
|
# Solaris's make does not support a blank line between target and rules
|
||||||
ngx_spacer=
|
ngx_spacer=
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user