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
|
@ -1376,21 +1376,15 @@ fi
|
||||||
|
|
||||||
##########################################
|
##########################################
|
||||||
# Do we need librt
|
# Do we need librt
|
||||||
CLOCKLIBS=""
|
|
||||||
cat > $TMPC <<EOF
|
cat > $TMPC <<EOF
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
int main(void) { clockid_t id; return clock_gettime(id, NULL); }
|
int main(void) { clockid_t id; return clock_gettime(id, NULL); }
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
rt=no
|
|
||||||
if $cc $ARCH_CFLAGS -o $TMPE $TMPC > /dev/null 2> /dev/null ; then
|
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
|
elif $cc $ARCH_CFLAGS -o $TMPE $TMPC -lrt > /dev/null 2> /dev/null ; then
|
||||||
rt=yes
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$rt" = "yes" ; then
|
|
||||||
CLOCKLIBS="-lrt"
|
CLOCKLIBS="-lrt"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue