[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/5] build-sys: remove unused LIBS
From: |
marcandre . lureau |
Subject: |
[PATCH 1/5] build-sys: remove unused LIBS |
Date: |
Thu, 14 Jan 2021 16:56:01 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Since meson switch and commit feabc71dfa58 ("configure: do not include
dependency flags in QEMU_CFLAGS and LIBS"), LIBS is unused.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
configure | 32 --------------------------------
1 file changed, 32 deletions(-)
diff --git a/configure b/configure
index 155dda124c..64c09f7d58 100755
--- a/configure
+++ b/configure
@@ -3390,16 +3390,6 @@ else
for pthread_lib in $PTHREADLIBS_LIST; do
if compile_prog "" "$pthread_lib" ; then
pthread=yes
- found=no
- for lib_entry in $LIBS; do
- if test "$lib_entry" = "$pthread_lib"; then
- found=yes
- break
- fi
- done
- if test "$found" = "no"; then
- LIBS="$pthread_lib $LIBS"
- fi
break
fi
done
@@ -4087,28 +4077,6 @@ if compile_prog "" "" ; then
bswap_h=yes
fi
-##########################################
-# Do we need librt
-# uClibc provides 2 versions of clock_gettime(), one with realtime
-# support and one without. This means that the clock_gettime() don't
-# need -lrt. We still need it for timer_create() so we check for this
-# function in addition.
-cat > $TMPC <<EOF
-#include <signal.h>
-#include <time.h>
-int main(void) {
- timer_create(CLOCK_REALTIME, NULL, NULL);
- return clock_gettime(CLOCK_REALTIME, NULL);
-}
-EOF
-
-if compile_prog "" "" ; then
- :
-# we need pthread for static linking. use previous pthread test result
-elif compile_prog "" "$pthread_lib -lrt" ; then
- LIBS="$LIBS -lrt"
-fi
-
# Check whether we have openpty() in either libc or libutil
cat > $TMPC << EOF
extern int openpty(int *am, int *as, char *name, void *termp, void *winp);
--
2.29.0
- [PATCH 0/5] Update libslirp & make it a subproject, marcandre . lureau, 2021/01/14
- [PATCH 1/5] build-sys: remove unused LIBS,
marcandre . lureau <=
- [PATCH 3/5] build-sys: add libvhost-user missing dependencies, marcandre . lureau, 2021/01/14
- [PATCH 2/5] build-sys: set global arguments for cflags/ldflags, marcandre . lureau, 2021/01/14
- [PATCH 4/5] slirp: update to git master, marcandre . lureau, 2021/01/14
- [PATCH 5/5] build-sys: make libslirp a meson subproject, marcandre . lureau, 2021/01/14
- Re: [PATCH 0/5] Update libslirp & make it a subproject, Paolo Bonzini, 2021/01/14