changeset 12715:2b6b5744525c octave-forge

[tsa] support for debian's hardening flags improved
author schloegl
date Thu, 25 Feb 2016 20:25:12 +0000
parents 9d24dd9d2986
children 6a77bcbbae18
files extra/tsa/src/Makefile
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)