On 16.07.21 16:51, Richard Henderson wrote:
On 7/16/21 4:28 AM, Christian Borntraeger wrote:
--extra-ldflags="-Wl,--build-id -pie -Wl,-z,relro -Wl,-z,now"
Full configure line is
../configure --prefix=/usr --libdir=/usr/lib64 --sysconfdir=/etc
--interp-prefix=/usr/qemu-%M --localstatedir=/var --libexecdir=/usr/libexec
--extra-ldflags="-Wl,--build-id -pie -Wl,-z,relro -Wl,-z,now"
--extra-cflags="-O2 -g -fPIE -DPIE" --enable-werror --disable-strip
--disable-rbd --disable-fdt --disable-xen --enable-kvm
--enable-trace-backend=log --iasl=false
--target-list=s390x-softmmu,i386-softmmu,x86_64-softmmu,s390x-linux-user
FWIW, -pie should not be buried in --extra-ldflags, but as --enable-pie on the
normal configure line.
I picked that from the configure script of an older fedora qemu src rpm some
years ago and I use that to do build checks.