Browse Source

Ensure trts_nsp.cpp is compiled without stack protection.

Signed-off-by: Chris Rankin <chris.rankin@r3.com>
Chris Rankin 6 years ago
parent
commit
36918f071f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sdk/trts/Makefile

+ 1 - 1
sdk/trts/Makefile

@@ -40,7 +40,7 @@ CXXFLAGS += $(ENCLAVE_CXXFLAGS) \
             -fno-exceptions \
             -fno-rtti
 
-TCXXFLAGS := $(filter-out -fstack-protector-strong, $(CXXFLAGS))
+TCXXFLAGS := $(patsubst -fstack-protector%,-fno-stack-protector,$(CXXFLAGS))
 
 OBJS1 := init_enclave.o  \
         trts.o           \