forked from pool/ibmswtpm2
- Update to upstream version 1637 * fixes build of ibmtss 1.5.0 * Refresh makefile.patch * Drop upstreamed patches - ibmswtpm2-fix-uninitialized.patch - ibmswtpm2-fix-empty-decrypt.patch * Fix use of uninitialized value: + ibmswtpm2-TcpServerPosix-Fix-use-of-uninitialized-value.patch OBS-URL: https://build.opensuse.org/request/show/827401 OBS-URL: https://build.opensuse.org/package/show/security/ibmswtpm2?expand=0&rev=20
26 lines
715 B
Diff
26 lines
715 B
Diff
--- ibmswtpm2-1637.orig/src/makefile 2019-12-19 23:35:43.000000000 +0100
|
|
+++ ibmswtpm2-1637/src/makefile 2020-08-17 18:56:34.607550789 +0200
|
|
@@ -40,10 +40,10 @@
|
|
|
|
CC = /usr/bin/gcc
|
|
|
|
-CCFLAGS = -Wall \
|
|
+CCFLAGS += -fno-strict-aliasing -fno-aggressive-loop-optimizations -Wno-unused-result \
|
|
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs \
|
|
- -Werror -Wsign-compare \
|
|
- -c -ggdb -O0 \
|
|
+ -Werror -Wsign-compare -Wno-unused-value -Wno-aggressive-loop-optimizations \
|
|
+ -c -ggdb \
|
|
-DTPM_POSIX \
|
|
-D_POSIX_ \
|
|
-DTPM_NUVOTON
|
|
@@ -54,7 +54,7 @@
|
|
# --coverage \
|
|
# -fprofile-arcs -ftest-coverage
|
|
|
|
-LNFLAGS = -ggdb \
|
|
+LNFLAGS += -ggdb \
|
|
-lcrypto \
|
|
-lpthread \
|
|
-lrt \
|