# HG changeset patch # User schloegl # Date 1456431912 0 # Node ID 2b6b5744525c8ac80c9a9bb2199ee0c146a0b6c7 # Parent 9d24dd9d2986ea8fd5e2b55ce2ea428475392b44 [tsa] support for debian's hardening flags improved diff -r 9d24dd9d2986 -r 2b6b5744525c extra/tsa/src/Makefile --- a/extra/tsa/src/Makefile Thu Feb 25 07:34:02 2016 +0000 +++ b/extra/tsa/src/Makefile Thu Feb 25 20:25:12 2016 +0000 @@ -45,6 +45,10 @@ OCTMEX = mkoctfile$(OCTAVE_VERSION) --mex -lgomp RM = rm +# Support Debian Hardening flags +# https://wiki.debian.org/HardeningWalkthrough#Handling_dpkg-buildflags_in_your_upstream_build_system +CFLAGS += $(CPPFLAGS) + ifneq (Darwin,$(shell uname)) CFLAGS += -fopenmp MEX_OPTION += -lgomp @@ -53,7 +57,7 @@ MEX_OPTION += CC\#$(CXX) CXX\#$(CXX) CFLAGS\#"$(CFLAGS)" CXXFLAGS\#"$(CFLAGS)" MATMEX = $(MATLABDIR)/bin/mex $(MEX_OPTION) -PROGS = covm_mex.mex sumskipnan_mex.mex histo_mex.mex +PROGS = covm_mex.mex sumskipnan_mex.mex histo_mex.mex #kalman_maar.mex ### per default only the mex-files for octave are built mex4o octave: $(PROGS)