Received: from eggs.gnu.org ([2001:4830:134:3::10]:34675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBljV-000788-E6 for qemu-devel@nongnu.org; Tue, 29 Nov 2016 11:58:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBljU-0003MU-Gw for qemu-devel@nongnu.org; Tue, 29 Nov 2016 11:58:17 -0500 Sender: Paolo Bonzini References: <20161129153720.29747-1-pbonzini@redhat.com> <20161129162229.GA26498@stefanha-x1.localdomain> From: Paolo Bonzini Message-ID: Date: Tue, 29 Nov 2016 17:57:04 +0100 MIME-Version: 1.0 In-Reply-To: <20161129162229.GA26498@stefanha-x1.localdomain> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] rules.mak: Also try -r to build modules List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: qemu-devel@nongnu.org, stefanha@redhat.com, qemu-stable@nongnu.org On 29/11/2016 17:22, Stefan Hajnoczi wrote: > On Tue, Nov 29, 2016 at 04:37:20PM +0100, Paolo Bonzini wrote: >> Building qemu fails in distributions where gcc enables PIE by default >> (e.g. Debian unstable) with: >> >> /usr/bin/ld: -r and -pie may not be used together >> >> You have to use -r instead of -Wl,-r to avoid gcc passing -pie to the linker >> when PIE is enabled and a relocatable object is passed. However, clang >> does not know about -r, so try -Wl,-r first. >> >> Reported-by: Adrian Bunk >> Cc: qemu-stable@nongnu.org >> Signed-off-by: Paolo Bonzini >> --- >> configure | 10 ++++++++-- >> rules.mak | 2 +- >> 2 files changed, 9 insertions(+), 3 deletions(-) > > Thanks, applied to my staging tree: > https://github.com/stefanha/qemu/commits/staging Okay, then I'll send my pull request without this one. Paolo