forked from pool/tpm2.0-tools
Matthias Gerstner
a5a59f0dae
the tss2 binary to be linked without passed LDFLAGS (like -pie), which causes the binary not to be position independent. OBS-URL: https://build.opensuse.org/package/show/security/tpm2.0-tools?expand=0&rev=64
14 lines
552 B
Diff
14 lines
552 B
Diff
Index: tpm2-tools-5.0/Makefile.am
|
|
===================================================================
|
|
--- tpm2-tools-5.0.orig/Makefile.am
|
|
+++ tpm2-tools-5.0/Makefile.am
|
|
@@ -45,7 +45,7 @@ lib_libcommon_a_SOURCES = $(LIB_SRC)
|
|
lib_libcommon_a_CFLAGS = -fPIC $(AM_CFLAGS)
|
|
|
|
tools_fapi_tss2_CFLAGS = $(FAPI_CFLAGS) -DTSS2_TOOLS_MAX="$(words $(tss2_tools))"
|
|
-tools_fapi_tss2_LDFLAGS = $(TSS2_FAPI_LIBS)
|
|
+tools_fapi_tss2_LDFLAGS = $(EXTRA_LDFLAGS) $(TSS2_FAPI_LIBS)
|
|
tools_fapi_tss2_SOURCES = \
|
|
tools/fapi/tss2_template.c \
|
|
tools/fapi/tss2_template.h \
|