Skip to content
This repository was archived by the owner on Apr 19, 2023. It is now read-only.

Commit 2e016d6

Browse files
committed
enable to use some hardening flags
- Maybe CC is not only gcc (e.g. clang) - add $(CPPFLAGS) and $(LDFLAGS) for hardening - at least -O3 is not best for default variable, -O2 is better - sometimes debug information is necessary
1 parent ee9fb68 commit 2e016d6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@
77
# Your compiler location may vary.
88
WIN32_CC=/usr/bin/i586-mingw32msvc-gcc
99

10-
CC=gcc
11-
CFLAGS=-Wall -pedantic -s -O3
10+
CFLAGS=-Wall -pedantic -O2
1211
SRCDIR=nailgun-client
1312
PREFIX=/usr/local
1413

1514
ng: ${SRCDIR}/ng.c
1615
@echo "Building ng client. To build a Windows binary, type 'make ng.exe'"
17-
${CC} ${CFLAGS} -o ng ${SRCDIR}/ng.c
16+
${CC} $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o ng ${SRCDIR}/ng.c
1817

1918
install: ng
2019
install -d ${PREFIX}/bin

0 commit comments

Comments
 (0)