Signed-off-by: Richard Zak <firstname.lastname@example.org
configure | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index 232c54dcc1..163af793e9 100755
@@ -768,7 +768,8 @@ SunOS)
- QEMU_CFLAGS="-DB_USE_POSITIVE_POSIX_ERRORS -D_BSD_SOURCE $QEMU_CFLAGS"
+ QEMU_CFLAGS="-DB_USE_POSITIVE_POSIX_ERRORS -D_BSD_SOURCE -fPIC $QEMU_CFLAGS"
v5: Proper formatting for patch (sorry)
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 about the incompatibility with PIE, and this fixes the
assertion failure without altering the TPM configuration variable.
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.
Richard J. Zak