From d21df8520e8b10c03d1daa6350c065df9d314db2 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 5 Dec 2018 15:38:33 +0300 Subject: [PATCH] Fixed building on paltforms without librt. --- nxt/auto/time | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) 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. -- 2.47.3