Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
patman
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debian Med
patman
Commits
3e830b57
Commit
3e830b57
authored
7 years ago
by
Graham Inggs
Browse files
Options
Downloads
Patches
Plain Diff
Fix passing of hardening flags in CXXFLAGS instead of CPPFLAGS
parent
393c6e13
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
debian/patches/drop_march_option.patch
+26
-6
26 additions, 6 deletions
debian/patches/drop_march_option.patch
with
26 additions
and
6 deletions
debian/patches/drop_march_option.patch
+
26
−
6
View file @
3e830b57
Description: Drop -march=k8 from build options
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 <tille@debian.org>
Last-Update: Thu, 14 Dec 2017 09:50:02 +0100
Author: Graham Inggs <ginggs@debian.org>
Last-Update: 2017-12-21
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@
version := 1.2
@@ -11,18 +11,18 @@
TARGETS := patman
OBJS := prefix_tree.o fasta.o main.o
CPPFLAGS += -Wall
-
CPPFLAGS += -Wall
-CPPFLAGS += -O3 -funroll-loops -DNDEBUG -march=k8
+CPPFLAGS += -O3 -funroll-loops -DNDEBUG
# CPPFLAGS += -ggdb
-# 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment