remove not needed rt variable
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
This commit is contained in:
parent
a36abbbbfb
commit
5169202b1a
8
configure
vendored
8
configure
vendored
@ -1376,21 +1376,15 @@ fi
|
||||
|
||||
##########################################
|
||||
# Do we need librt
|
||||
CLOCKLIBS=""
|
||||
cat > $TMPC <<EOF
|
||||
#include <signal.h>
|
||||
#include <time.h>
|
||||
int main(void) { clockid_t id; return clock_gettime(id, NULL); }
|
||||
EOF
|
||||
|
||||
rt=no
|
||||
if $cc $ARCH_CFLAGS -o $TMPE $TMPC > /dev/null 2> /dev/null ; then
|
||||
:
|
||||
CLOCKLIBS=""
|
||||
elif $cc $ARCH_CFLAGS -o $TMPE $TMPC -lrt > /dev/null 2> /dev/null ; then
|
||||
rt=yes
|
||||
fi
|
||||
|
||||
if test "$rt" = "yes" ; then
|
||||
CLOCKLIBS="-lrt"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user