Explorar o código

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 %!s(int64=8) %!d(string=hai) anos
pai
achega
9cda5c4774
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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           \