Browse Source

Merge pull request #165 from corda/chrisr3-stack-protector-fix

Ensure trts_nsp.cpp is compiled without stack protection.

Signed-off-by: Zhang Lili lili.z.zhang@intel.com
lzha101 6 years ago
parent
commit
9cda5c4774
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           \