Link executables position-independent (bsc#1184124). + PIE.patch OBS-URL: https://build.opensuse.org/request/show/898859 OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-sandbox?expand=0&rev=47
21 lines
667 B
Diff
21 lines
667 B
Diff
Index: libvirt-sandbox-0.8.0/libvirt-sandbox/Makefile.am
|
|
===================================================================
|
|
--- libvirt-sandbox-0.8.0.orig/libvirt-sandbox/Makefile.am
|
|
+++ libvirt-sandbox-0.8.0/libvirt-sandbox/Makefile.am
|
|
@@ -222,6 +222,7 @@ libvirt_sandbox_init_lxc_CFLAGS = \
|
|
$(NULL)
|
|
libvirt_sandbox_init_lxc_LDFLAGS = \
|
|
-all-static \
|
|
+ -static-pie \
|
|
$(COVERAGE_CFLAGS:-f%=-Wc,f%) \
|
|
$(WARN_CFLAGS) \
|
|
$(NULL)
|
|
@@ -236,6 +237,7 @@ libvirt_sandbox_init_qemu_CFLAGS = \
|
|
$(NULL)
|
|
libvirt_sandbox_init_qemu_LDFLAGS = \
|
|
-all-static \
|
|
+ -static-pie \
|
|
$(COVERAGE_CFLAGS:-f%=-Wc,f%) \
|
|
$(ZLIB_LIBS) \
|
|
$(LZMA_LIBS) \
|