From: Igor Sysoev Date: Wed, 5 Dec 2018 12:38:33 +0000 (+0300) Subject: Fixed building on paltforms without librt. X-Git-Tag: 0.2.7~8 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=d21df8520e8b10c03d1daa6350c065df9d314db2;p=njs.git Fixed building on paltforms without librt. --- diff --git a/nxt/auto/time b/nxt/auto/time index fc0bc984..85bdabce 100644 --- a/nxt/auto/time +++ b/nxt/auto/time @@ -27,20 +27,14 @@ if [ $nxt_found = no ]; then nxt_feature="clock_gettime(CLOCK_MONOTONIC) in librt" nxt_feature_libs="-lrt" . ${NXT_AUTO}feature -fi - -if [ $nxt_found = yes ]; then - cat << END >> $NXT_MAKEFILE_CONF - -NXT_LIBRT = -lrt -END -else - cat << END >> $NXT_MAKEFILE_CONF + if [ $nxt_found = yes ]; then + cat << END >> $NXT_MAKEFILE_CONF -NXT_LIBRT = +NXT_LIBRT = -lrt END + fi fi # Linux, FreeBSD, MacOSX.