9485e8
diff -up ./esc/src/lib/coolkey/Makefile.am.fix11 ./esc/src/lib/coolkey/Makefile.am
9485e8
--- ./esc/src/lib/coolkey/Makefile.am.fix11	2021-09-23 15:54:17.207378817 -0700
9485e8
+++ ./esc/src/lib/coolkey/Makefile.am	2021-09-23 17:36:26.312894242 -0700
9485e8
@@ -24,6 +24,7 @@ EXTRA_DIST =
9485e8
 DISTCLEANFILES =
9485e8
 lib_LTLIBRARIES =
9485e8
 bin_PROGRAMS =
9485e8
+COOLKEY_CFLAGS=-D_FORTIFY_SOURCE=2 -fcf-protection=full
9485e8
 
9485e8
 AM_CPPFLAGS += \
9485e8
 	$(COOLKEY_CFLAGS) \
9485e8
@@ -51,8 +52,8 @@ source_c           = \
9485e8
 
9485e8
 lib_LTLIBRARIES += libCoolkey-1.0.la
9485e8
 
9485e8
-libCoolkey_1_0_la_CFLAGS = @PCSC_CFLAGS@ @NSPR_CFLAGS@ @NSS_CFLAGS@  -I ../nss-http-client
9485e8
-libCoolkey_1_0_la_CPPFLAGS = @PCSC_CFLAGS@ @NSPR_CFLAGS@ @NSS_CFLAGS@ -I ../nss-http-client
9485e8
+libCoolkey_1_0_la_CFLAGS = @PCSC_CFLAGS@ @NSPR_CFLAGS@ @NSS_CFLAGS@ $(AM_CFLAGS)  -I ../nss-http-client
9485e8
+libCoolkey_1_0_la_CPPFLAGS = @PCSC_CFLAGS@ @NSPR_CFLAGS@ @NSS_CFLAGS@ $(AM_CPPFLAGS) -I ../nss-http-client
9485e8
 libCoolkey_1_0_la_LIBADD = $(COOLKEY_LIBS)
9485e8
 libCoolkey_1_0_la_LDFLAGS = -Wl,-z,now
9485e8
 libCoolkey_1_0_la_SOURCES = $(source_c) $(source_cpp)
9485e8
diff -up ./esc/src/lib/coolkey-mgr/Makefile.am.fix11 ./esc/src/lib/coolkey-mgr/Makefile.am
9485e8
--- ./esc/src/lib/coolkey-mgr/Makefile.am.fix11	2021-09-23 17:37:12.680837943 -0700
9485e8
+++ ./esc/src/lib/coolkey-mgr/Makefile.am	2021-09-23 18:25:02.611294039 -0700
9485e8
@@ -24,8 +24,9 @@ EXTRA_DIST =
9485e8
 DISTCLEANFILES =
9485e8
 lib_LTLIBRARIES =
9485e8
 bin_PROGRAMS =
9485e8
+COOLKEY_MGR_CFLAGS=-fcf-protection=full
9485e8
 
9485e8
-OTHER_CPPFLAGS = -I ../coolkey $(PCSC_CFLAGS)
9485e8
+OTHER_CPPFLAGS = -I ../coolkey $(PCSC_CFLAGS) $(COOLKEY_MGR_CFLAGS)
9485e8
 OTHER_LIBS = -L../coolkey/.libs -lCoolkey-1.0 -L../nss-http-client/.libs -lNssHttpClient-1.0 $(DBUS_LIBS)
9485e8
 ESC_CFLAGS += $(DBUS_CFLAGS)
9485e8
 
9485e8
diff -up ./esc/src/lib/nss-http-client/Makefile.am.fix11 ./esc/src/lib/nss-http-client/Makefile.am
9485e8
--- ./esc/src/lib/nss-http-client/Makefile.am.fix11	2021-09-23 16:09:43.841312015 -0700
9485e8
+++ ./esc/src/lib/nss-http-client/Makefile.am	2021-09-23 17:36:44.518872136 -0700
9485e8
@@ -24,6 +24,7 @@ EXTRA_DIST =
9485e8
 DISTCLEANFILES =
9485e8
 lib_LTLIBRARIES =
9485e8
 bin_PROGRAMS =
9485e8
+NSS_HTTP_CLIENT_CFLAGS=-D_FORTIFY_SOURCE=2 -fcf-protection=full
9485e8
 AM_CPPFLAGS += \
9485e8
 	$(NSS_HTTP_CLIENT_CFLAGS) \
9485e8
 	$(NULL)
9485e8
@@ -49,8 +50,8 @@ source_c           = \
9485e8
 MYDEFS = @DEFS@
9485e8
 lib_LTLIBRARIES += libNssHttpClient-1.0.la
9485e8
 
9485e8
-#libNssHttpClient_1_0_la_CFLAGS = @PCSC_CFLAGS@ @NSPR_CFLAGS@ @NSS_CFLAGS@ -DLINUX -I ../coolkey
9485e8
-libNssHttpClient_1_0_la_CPPFLAGS = @PCSC_CFLAGS@ @NSPR_CFLAGS@ @NSS_CFLAGS@ -I ../coolkey @DEFS@
9485e8
+#libNssHttpClient_1_0_la_CFLAGS = @PCSC_CFLAGS@ @NSPR_CFLAGS@ @NSS_CFLAGS@ -DLINUX  $(AM_CFLAGS) -I ../coolkey
9485e8
+libNssHttpClient_1_0_la_CPPFLAGS = @PCSC_CFLAGS@ @NSPR_CFLAGS@ @NSS_CFLAGS@ $(AM_CPPFLAGS) -I ../coolkey @DEFS@
9485e8
 libNssHttpClient_1_0_la_LIBADD = $(COOLKEY_LIBS)
9485e8
 libNssHttpClient_1_0_la_LDFLAGS = -Wl,-z,now
9485e8
 libNssHttpClient_1_0_la_SOURCES = $(source_c) $(source_cpp) $(source_h)