]> git.ipfire.org Git - thirdparty/qemu.git/commit
rules.mak: Use -r instead of -Wl, -r to fix building when PIE is default
authorAdrian Bunk <bunk@stusta.de>
Sun, 27 Nov 2016 16:28:17 +0000 (18:28 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 13 Dec 2016 00:05:55 +0000 (18:05 -0600)
commit248a780fd31ca218d2652c8a4ca19ca8abefb472
tree991f1d0777a38ad497718dc17872b3ddfb68839e
parent80f630be2105a6957c8125b789e04573064438d2
rules.mak: Use -r instead of -Wl, -r to fix building when PIE is default

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

Use -r instead of -Wl,-r to avoid gcc passing -pie to the linker
when PIE is enabled and a relocatable object is passed.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Message-Id: <20161127162817.15144-1-bunk@stusta.de>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit c96f0ee6a67ca6277366e78ce5d84d5c20dd596f)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
rules.mak