diff options
author | Igor Sysoev <igor@sysoev.ru> | 2018-01-11 17:13:58 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2018-01-11 17:13:58 +0300 |
commit | c105988e5102eefd91fa8336848e926ebbb42a5b (patch) | |
tree | d18b439278ed314ed37cb41f04cdef6d4062d7d2 /auto/os | |
parent | f7bc2e1560c2bbbd899b22a54837f09ccb582609 (diff) | |
download | unit-c105988e5102eefd91fa8336848e926ebbb42a5b.tar.gz unit-c105988e5102eefd91fa8336848e926ebbb42a5b.tar.bz2 |
Fixed DragonFly BSD shared memory implementation.
Diffstat (limited to 'auto/os')
-rw-r--r-- | auto/os/conf | 20 | ||||
-rw-r--r-- | auto/os/test | 2 |
2 files changed, 21 insertions, 1 deletions
diff --git a/auto/os/conf b/auto/os/conf index 71c15b77..67db5df1 100644 --- a/auto/os/conf +++ b/auto/os/conf @@ -167,6 +167,26 @@ case "$NXT_SYSTEM" in NXT_LIBS="$NXT_PTHREAD" ;; + DragonFly) + nxt_have=NXT_DRAGONFLY . auto/have + + NXT_STATIC_LINK="ar -r -c" + NXT_SHARED_LINK="\$(CC) -shared" + NXT_SHARED_LOCAL_LINK="\$(CC) -shared" + NXT_MODULE_LINK="\$(CC) -shared" + + # "-Wl,-E" exports symbols of executable file. + NXT_EXEC_LINK="\$(CC) -Wl,-E" + NXT_SHARED_LOCAL_EXEC_LINK= + + NXT_LIB_STATIC="libnxt.a" + NXT_LIB_SHARED="libnxt.so" + NXT_LIB_SHARED_LOCAL="$NXT_BUILD_DIR/libnxt.so" + + NXT_LIBM="-lm" + NXT_LIBS="$NXT_LIBRT $NXT_PTHREAD" + ;; + AIX) nxt_have=NXT_AIX . auto/have diff --git a/auto/os/test b/auto/os/test index 0332fcfa..41c11b19 100644 --- a/auto/os/test +++ b/auto/os/test @@ -16,7 +16,7 @@ case "$NXT_SYSTEM" in CC=${CC:-cc} ;; - FreeBSD | NetBSD | OpenBSD) + FreeBSD | NetBSD | OpenBSD | DragonFly) NXT_SYSTEM_VERSION=`uname -r 2>/dev/null` NXT_SYSTEM_PLATFORM=`uname -m 2>/dev/null` echo=echo |