stubdom: fix vtpm compilation on GCC-7
A message that is not in the archive (sent off-list or not yet received): [email protected]
Marek,
The undefined references are fixed by adding the static keyword in front of the inline keywords (149 times).I did it with a sed edit/insert.
@@ -228,6 +228,8 @@ tpm_emulator-$(XEN_TARGET_ARCH):
tpm_emulator-$(TPMEMU_VERSION).tar.gz
patch -d $@ -p1 < vtpm-deepquote.patch
patch -d $@ -p1 < vtpm-deepquote-anyloc.patch
patch -d $@ -p1 < vtpm-cmake-Wextra.patch
+ patch -d $@ -p1 < vtpm-implicit-fallthrough.patch+ for i in marshal.h tcg.h tpm2_marshal.h tpmrsa.h ;do sed -i -e '/^inline/ i\static' stubdom/vtpmmgr/"$i" ;done mkdir $@/build
cd $@/build; CC=${CC} $(CMAKE) .. -DCMAKE_C_FLAGS:STRING="-std=c99
-DTPM_NO_EXTERN $(TARGET_CPPFLAGS) $(TARGET_CFLAGS)
-Wno-declaration-after-statement"
touch $@
PryMar56##xen-packaging
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel