qemu/0024-configure-Enable-PIE-for-ppc-and-pp.patch
Bruce Rogers f099b2fad1 Accepting request 493037 from home:bfrogers:branches:Virtualization
Fix build issues for some older distros. Also includes fixing broken parts of spec file when not building x86 firmware.

OBS-URL: https://build.opensuse.org/request/show/493037
OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=338
2017-05-05 15:05:43 +00:00

29 lines
857 B
Diff

From e374a2f8d62eaba772ef5da1deede30b5a3b6868 Mon Sep 17 00:00:00 2001
From: Dinar Valeev <k0da@opensuse.org>
Date: Wed, 2 Oct 2013 17:56:03 +0200
Subject: [PATCH] configure: Enable PIE for ppc and ppc64 hosts
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Dinar Valeev <dvaleev@suse.com>
[AF: Rebased for v1.7]
Signed-off-by: Andreas Färber <afaerber@suse.de>
---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
index be4d326ae0..3308560f78 100755
--- a/configure
+++ b/configure
@@ -1600,7 +1600,7 @@ fi
if test "$pie" = ""; then
case "$cpu-$targetos" in
- i386-Linux|x86_64-Linux|x32-Linux|i386-OpenBSD|x86_64-OpenBSD)
+ i386-Linux|x86_64-Linux|x32-Linux|ppc*-Linux|i386-OpenBSD|x86_64-OpenBSD)
;;
*)
pie="no"