[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 01/12] build-sys: fix qemu-ga -pthread linking
From: |
Marc-André Lureau |
Subject: |
[Qemu-devel] [PATCH 01/12] build-sys: fix qemu-ga -pthread linking |
Date: |
Fri, 8 Dec 2017 01:58:14 +0100 |
When linking qemu-ga under some configuration (when gthread-2.0.pc
doesn't have -pthread, as happening atm with meson build), you may
have this linking issue:
/usr/bin/ld: libqemuutil.a(qemu-thread-posix.o): undefined reference to symbol
'pthread_setname_np@@GLIBC_2.12'
/usr/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
Make sure qemu-ga links with the pthread library, by adding correct
flags to libs_qga.
Signed-off-by: Marc-André Lureau <address@hidden>
---
configure | 1 +
1 file changed, 1 insertion(+)
diff --git a/configure b/configure
index 0c6e7572db..2b8c71f522 100755
--- a/configure
+++ b/configure
@@ -3436,6 +3436,7 @@ else
done
if test "$found" = "no"; then
LIBS="$pthread_lib $LIBS"
+ libs_qga="$pthread_lib $libs_qga"
fi
PTHREAD_LIB="$pthread_lib"
break
--
2.15.1.355.g36791d7216
- [Qemu-devel] [PATCH 00/12] Various build-sys and ASAN related fixes, Marc-André Lureau, 2017/12/07
- [Qemu-devel] [PATCH 01/12] build-sys: fix qemu-ga -pthread linking,
Marc-André Lureau <=
- [Qemu-devel] [PATCH 02/12] build-sys: silence make by default, Marc-André Lureau, 2017/12/07
- [Qemu-devel] [PATCH 03/12] build-sys: add a rule to print a variable, Marc-André Lureau, 2017/12/07
- [Qemu-devel] [PATCH 04/12] build-sys: add AddressSanitizer when --enable-debug if possible, Marc-André Lureau, 2017/12/07
- [Qemu-devel] [PATCH 05/12] tests: fix check-qobject leak:, Marc-André Lureau, 2017/12/07
- [Qemu-devel] [PATCH 07/12] readline: add a free function, Marc-André Lureau, 2017/12/07