| 1 |
Description: Makefile fixes |
| 2 |
Drop -march=k8 from build options |
| 3 |
Fix passing of hardening flags in CXXFLAGS |
| 4 |
instead of CPPFLAGS, fixes FTBFS on X32 |
| 5 |
Bug-Debian: https://bugs.debian.org/884342 |
| 6 |
Bug-Debian: https://bugs.debian.org/884795 |
| 7 |
Author: Andreas Tille <[email protected]> |
| 8 |
Author: Graham Inggs <[email protected]> |
| 9 |
Last-Update: 2017-12-21 |
| 10 |
|
| 11 |
--- a/Makefile |
| 12 |
+++ b/Makefile |
| 13 |
@@ -11,18 +11,18 @@ |
| 14 |
|
| 15 |
TARGETS := patman |
| 16 |
OBJS := prefix_tree.o fasta.o main.o |
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
+CXXFLAGS += -Wall |
| 21 |
+CXXFLAGS += -O3 -funroll-loops -DNDEBUG |
| 22 |
+# CXXFLAGS += -ggdb |
| 23 |
LDLIBS += -lpopt |
| 24 |
|
| 25 |
all: $(TARGETS) |
| 26 |
|
| 27 |
patman: $(OBJS) |
| 28 |
|
| 29 |
+ g++ $(CXXFLAGS) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS) |
| 30 |
|
| 31 |
%.o: %.cpp |
| 32 |
|
| 33 |
+ g++ -DVERSION="\"$(version)\"" $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< |
| 34 |
|
| 35 |
install: $(TARGETS) |
| 36 |
install -d ${prefix}/bin |