9a724fb84e
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
13 lines
446 B
Diff
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)))
|