qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/2 v4] Configure script for Haiku


From: Richard Zak
Subject: [PATCH 1/2 v4] Configure script for Haiku
Date: Fri, 16 Jul 2021 20:16:15 -0400

This refers to the email from a few weeks ago, regarding TPM & Haiku. It seems the assertion failure isn't really about the TPM, but about disabling PIE and adding -fPIC. There's discussion on the Haiku forum[1] about the incompatibility with PIE, and this fixes the assertion failure without altering the TPM configuration variable.
[1] https://discuss.haiku-os.org/t/qemu-on-haiku-sdl-issue/10961/6?u=rjzak

Previously, the TPM option was causing an assertion error at util/async.c:669 qemu_set_current_aio_context() !my_aiocontext. I suspect it was because the TPM option may have implied PIE. This patch ensures PIE doesn't get used, but -fPIC is used instead.

diff --git a/configure b/configure
index 650d9c0735..df834367b6 100755
--- a/configure
+++ b/configure
@@ -766,7 +766,8 @@ SunOS)
 ;;
 Haiku)
   haiku="yes"
-  QEMU_CFLAGS="-DB_USE_POSITIVE_POSIX_ERRORS -D_BSD_SOURCE $QEMU_CFLAGS"
+  pie="no"
+  QEMU_CFLAGS="-DB_USE_POSITIVE_POSIX_ERRORS -D_BSD_SOURCE -fPIC $QEMU_CFLAGS"
 ;;
 Linux)
   audio_drv_list="try-pa oss"


--
Regards,

Richard J. Zak
Professional Genius

reply via email to

[Prev in Thread] Current Thread [Next in Thread]