Author: Andreas Tille <tille@debian.org>
Last-Update: Mon, 13 Apr 2015 22:29:27 +0200
Description: Propagate hardening options

--- a/Makefile
+++ b/Makefile
@@ -122,7 +122,7 @@
 
 
 tigr:
-	cd $(TIGR_SRC_DIR); $(MAKE) all
+	cd $(TIGR_SRC_DIR); $(MAKE) CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" all
 
 
 uninstall: clean
--- a/src/tigr/Makefile
+++ b/src/tigr/Makefile
@@ -8,10 +8,10 @@
 AUX_BIN_DIR := $(CURDIR)
 endif
 
-OBJ_RULE = $(CXX) $(CXXFLAGS) $< -c -o $@
-BIN_RULE = $(CXX) $(CXXFLAGS) $^ -o $(BIN_DIR)/$@; \
+OBJ_RULE = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $< -c -o $@
+BIN_RULE = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) $^ -o $(BIN_DIR)/$@; \
            chmod 755 $(BIN_DIR)/$@
-AUX_BIN_RULE = $(CXX) $(CXXFLAGS) $^ -o $(AUX_BIN_DIR)/$@; \
+AUX_BIN_RULE = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) $^ -o $(AUX_BIN_DIR)/$@; \
            chmod 755 $(AUX_BIN_DIR)/$@
 VPATH := $(AUX_BIN_DIR):$(BIN_DIR)
 
