Description: Makefile fixes Drop -march=k8 from build options Fix passing of hardening flags in CXXFLAGS instead of CPPFLAGS, fixes FTBFS on X32 Bug-Debian: https://bugs.debian.org/884342 Bug-Debian: https://bugs.debian.org/884795 Author: Andreas Tille Author: Graham Inggs Last-Update: 2017-12-21 --- a/Makefile +++ b/Makefile @@ -11,18 +11,18 @@ TARGETS := patman OBJS := prefix_tree.o fasta.o main.o -CPPFLAGS += -Wall -CPPFLAGS += -O3 -funroll-loops -DNDEBUG -march=k8 -# CPPFLAGS += -ggdb +CXXFLAGS += -Wall +CXXFLAGS += -O3 -funroll-loops -DNDEBUG +# CXXFLAGS += -ggdb LDLIBS += -lpopt all: $(TARGETS) patman: $(OBJS) - g++ $(CPPFLAGS) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS) + g++ $(CXXFLAGS) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS) %.o: %.cpp - g++ -DVERSION="\"$(version)\"" $(CPPFLAGS) -c -o $@ $< + g++ -DVERSION="\"$(version)\"" $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< install: $(TARGETS) install -d ${prefix}/bin