Skip to content

Commit d02cee0

Browse files
authored
Merge pull request #6685 from BOINC/dpa_makefiles
update linux Makefiles
2 parents f0d1ed3 + cac02fd commit d02cee0

File tree

2 files changed

+4
-26
lines changed

2 files changed

+4
-26
lines changed

client/Makefile.linux

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,8 @@
88
# make -f Makefile.linux clean all
99
# 4) do the same in this dir
1010

11-
OPTS = -O2 -Wall -Wformat -Wformat=2 -Wconversion -Wimplicit-fallthrough \
12-
-Wno-deprecated-copy \
13-
-Werror=format-security \
14-
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 \
15-
-D_GLIBCXX_ASSERTIONS \
16-
-fstack-protector -fstack-protector-strong \
17-
-Wl,-z,nodlopen -Wl,-z,noexecstack \
18-
-Wl,-z,relro -Wl,-z,now \
19-
-Wl,--as-needed -Wl,--no-copy-dt-needed-entries
20-
2111
//CC = g++ -O4 -Wall -I ../ -I ../lib/
22-
//CC = g++ -g -Wall -I ../ -I ../lib/
23-
CC = g++ -g $(OPTS) -I ../ -I ../lib/
12+
CC = g++ -g -Wall -I ../ -I ../lib/
2413

2514
PROGS = boinc boinccmd
2615

@@ -153,7 +142,7 @@ clean:
153142
LIBS = ../lib/boinc.a \
154143
-L /usr/local/lib/ \
155144
-lpthread \
156-
-lX11 -lXss\
145+
-lX11 \
157146
-lcurl -lssl -lcrypto \
158147
-lz -ldl
159148

lib/Makefile.linux

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
11
# make libraries for Linux client and boinccmd
22

3-
OPTS = -O2 -Wall -Wformat -Wformat=2 -Wconversion -Wimplicit-fallthrough \
4-
-Wno-deprecated-copy \
5-
-Werror=format-security \
6-
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 \
7-
-D_GLIBCXX_ASSERTIONS \
8-
# -fstack-clash-protection \
9-
-fstack-protector-strong \
10-
-Wl,-z,nodlopen -Wl,-z,noexecstack \
11-
-Wl,-z,relro -Wl,-z,now \
12-
-Wl,--as-needed -Wl,--no-copy-dt-needed-entries
13-
143
//CC = g++ -O4 -Wall -I ../
15-
//CC = g++ -g -Wall -I ../
16-
CC = g++ -g $(OPTS) -I ../
4+
CC = g++ -g -Wall -I ../ \
5+
-Wall -Wextra -pedantic -Wcast-align -Wcast-qual -Wctor-dtor-privacy -Wdisabled-optimization -Wformat=2 -Winit-self -Wlogical-op -Wmissing-include-dirs -Wnoexcept -Woverloaded-virtual -Wredundant-decls -Wshadow -Wsign-promo -Wstrict-null-sentinel -Wstrict-overflow=5 -Wundef -Wno-unused -Wno-variadic-macros -Wno-parentheses -fdiagnostics-show-option
176

187
all: boinc.a boinc_cmd.a
198

0 commit comments

Comments
 (0)