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

Commit 2b0ade9

Browse files
authored
Merge pull request #118 from henrich/master
enable to use some hardening flags
2 parents ee9fb68 + 2e016d6 commit 2b0ade9

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)