File makefile.patch of Package ibmswtpm2

--- 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				\
openSUSE Build Service is sponsored by