lvm2/bug-1184124-link-tests-as-PIE.patch
Gang He 9a724fb84e Accepting request 895370 from home:wfrisch:branches:Base:System
Link test as position independent executable (bsc#1184124).
  + bug-1184124-link-tests-as-PIE.patch

OBS-URL: https://build.opensuse.org/request/show/895370
OBS-URL: https://build.opensuse.org/package/show/Base:System/lvm2?expand=0&rev=298
2021-05-26 05:55:13 +00:00

13 lines
446 B
Diff

Index: LVM2.2.03.10/test/Makefile.in
===================================================================
--- LVM2.2.03.10.orig/test/Makefile.in
+++ LVM2.2.03.10/test/Makefile.in
@@ -31,6 +31,7 @@ LVM_TEST_RESULTS ?= results
SOURCES = lib/not.c lib/harness.c lib/dmsecuretest.c
CXXSOURCES = lib/runner.cpp
CXXFLAGS += $(EXTRA_EXEC_CFLAGS)
+LDFLAGS += -pie
CLEAN_DIRS += dbus/__pycache__ $(LVM_TEST_RESULTS)
ifneq (.,$(firstword $(srcdir)))