conf (0:a63ceefd6ab0) conf (216:07257705cd64)
1
2# Copyright (C) Igor Sysoev
3# Copyright (C) NGINX, Inc.
4
5
6# To support dynamically loaded modules libnxt library must be a shared
7# object itself because an application linked with static libnxt library
8# may lack code required by the modules. Dynamic linkers allow to specify

--- 12 unchanged lines hidden (view full) ---

21 Linux)
22 nxt_have=NXT_LINUX . auto/have
23
24 NXT_STATIC_LINK="ar -r -c"
25 NXT_SHARED_LINK="\$(CC) -shared -Wl,-soname,libnxt.so"
26 NXT_SHARED_LOCAL_LINK="\$(CC) -shared \
27 -Wl,-soname,\\\$\$ORIGIN/libnxt.so"
28 NXT_MODULE_LINK="\$(CC) -shared"
1
2# Copyright (C) Igor Sysoev
3# Copyright (C) NGINX, Inc.
4
5
6# To support dynamically loaded modules libnxt library must be a shared
7# object itself because an application linked with static libnxt library
8# may lack code required by the modules. Dynamic linkers allow to specify

--- 12 unchanged lines hidden (view full) ---

21 Linux)
22 nxt_have=NXT_LINUX . auto/have
23
24 NXT_STATIC_LINK="ar -r -c"
25 NXT_SHARED_LINK="\$(CC) -shared -Wl,-soname,libnxt.so"
26 NXT_SHARED_LOCAL_LINK="\$(CC) -shared \
27 -Wl,-soname,\\\$\$ORIGIN/libnxt.so"
28 NXT_MODULE_LINK="\$(CC) -shared"
29 NXT_MODULE_LINK="\$(CC) -shared"
30
31 # "-Wl,-E" exports symbols of executable file.
32 NXT_EXEC_LINK="\$(CC) -Wl,-E"
33 NXT_SHARED_LOCAL_EXEC_LINK=
34
35 NXT_LIB_STATIC="libnxt.a"
36 NXT_LIB_SHARED="libnxt.so"
37 NXT_LIB_SHARED_LOCAL="$NXT_BUILD_DIR/libnxt.so"

--- 61 unchanged lines hidden (view full) ---

99 nxt_have=NXT_MACOSX . auto/have
100
101 # HFS+ volumes are caseless by default.
102 nxt_have=NXT_HAVE_CASELESS_FILESYSTEM . auto/have
103
104 # MacOSX 10.6 (Snow Leopard) has deprecated ucontext(3).
105 # MacOSX 10.7 (Lion) has deprecated system OpenSSL.
106 # MAC_OS_X_VERSION_MIN_REQUIRED macro does not help.
29
30 # "-Wl,-E" exports symbols of executable file.
31 NXT_EXEC_LINK="\$(CC) -Wl,-E"
32 NXT_SHARED_LOCAL_EXEC_LINK=
33
34 NXT_LIB_STATIC="libnxt.a"
35 NXT_LIB_SHARED="libnxt.so"
36 NXT_LIB_SHARED_LOCAL="$NXT_BUILD_DIR/libnxt.so"

--- 61 unchanged lines hidden (view full) ---

98 nxt_have=NXT_MACOSX . auto/have
99
100 # HFS+ volumes are caseless by default.
101 nxt_have=NXT_HAVE_CASELESS_FILESYSTEM . auto/have
102
103 # MacOSX 10.6 (Snow Leopard) has deprecated ucontext(3).
104 # MacOSX 10.7 (Lion) has deprecated system OpenSSL.
105 # MAC_OS_X_VERSION_MIN_REQUIRED macro does not help.
107 # The minimum version allowed for i386 is 10.4 (Tiger).
108 NXT_CFLAGS="$NXT_CFLAGS -mmacosx-version-min=10.4"
106 # "-rpath" is supported since MacOSX 10.5 (Leopard).
107 NXT_CFLAGS="$NXT_CFLAGS -mmacosx-version-min=10.5"
109
110 NXT_STATIC_LINK="ar -r -c"
111 NXT_SHARED_LINK="\$(CC) -dynamiclib"
112 NXT_SHARED_LOCAL_LINK="\$(CC) -dynamiclib \
113 -install_name @executable_path/libnxt.dylib"
114
115 # Prior to MacOSX 10.5 (Leopard) only bundles could be unloaded.
108
109 NXT_STATIC_LINK="ar -r -c"
110 NXT_SHARED_LINK="\$(CC) -dynamiclib"
111 NXT_SHARED_LOCAL_LINK="\$(CC) -dynamiclib \
112 -install_name @executable_path/libnxt.dylib"
113
114 # Prior to MacOSX 10.5 (Leopard) only bundles could be unloaded.
116 NXT_MODULE_LINK="\$(CC) -bundle -undefined dynamic_lookup"
115 # NXT_MODULE_LINK="\$(CC) -bundle -undefined dynamic_lookup"
116 NXT_MODULE_LINK="\$(CC) -dynamiclib -undefined dynamic_lookup"
117
118 NXT_EXEC_LINK="\$(CC)"
119 NXT_SHARED_LOCAL_EXEC_LINK=
120
121 NXT_LIB_STATIC="libnxt.a"
122 NXT_LIB_SHARED="libnxt.dylib"
123 NXT_LIB_SHARED_LOCAL="$NXT_BUILD_DIR/libnxt.dylib"
124

--- 119 unchanged lines hidden ---
117
118 NXT_EXEC_LINK="\$(CC)"
119 NXT_SHARED_LOCAL_EXEC_LINK=
120
121 NXT_LIB_STATIC="libnxt.a"
122 NXT_LIB_SHARED="libnxt.dylib"
123 NXT_LIB_SHARED_LOCAL="$NXT_BUILD_DIR/libnxt.dylib"
124

--- 119 unchanged lines hidden ---