Author: Michael R. Crusoe <michael.crusoe@gmail.com>
Description: enable hardening flags passthrough
--- libtabixpp.orig/Makefile
+++ libtabixpp/Makefile
@@ -17,12 +17,12 @@
 .SUFFIXES:.c .o
 
 .c.o:
-	$(CC) -c $(CXXFLAGS) $(DFLAGS) $(INCLUDES) $< -o $@
+	$(CC) $(CPPFLAGS) -c $(CXXFLAGS) $(DFLAGS) $(INCLUDES) $< -o $@
 
 all:	$(PROG) libtabixpp.so.$(SONUMBER) libtabixpp.a
 
 tabix.o: tabix.cpp tabix.hpp
-	$(CXX) $(CXXFLAGS) -c tabix.cpp $(INCLUDES)
+	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c tabix.cpp $(INCLUDES)
 
 libtabixpp.a: tabix.o
 	ar rcs $@ $<
@@ -31,7 +31,7 @@
 	$(CXX) -shared -o $@ $< -fPIC -Wl,-soname,libtabixpp.so.$(SONUMBER) $(LDFLAGS) -lhts
 
 tabix++: tabix.o main.cpp
-	$(CXX) $(CXXFLAGS) -o $@ main.cpp tabix.o $(INCLUDES) $(LIBPATH) \
+	$(CXX) $(LDFLAGS) $(CPPFLAGS) $(CXXFLAGS) -o $@ main.cpp tabix.o $(INCLUDES) $(LIBPATH) \
 		-lhts -lpthread -lm -lz
 
 cleanlocal:
