Introduction
Introduction Statistics Contact Development Disclaimer Help
Makefile: do not hardcode optimization and linker flags - pointtools - Simple p…
git clone git://bitreich.org/pointtools/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfr…
Log
Files
Refs
Tags
README
LICENSE
---
commit e56e6e57aa64f7695dca271de1755794489b2dc6
parent e0d87452da86dd8a57838bcaa8b8c817def194b0
Author: Anders Damsgaard <[email protected]>
Date: Mon, 14 Jun 2021 09:37:53 +0200
Makefile: do not hardcode optimization and linker flags
Adhere to git://bitreich.org/bitreich-style/c/makefile-guideline.txt
71 * $CFLAGS: do not hard-code optimization flags like (-O2) or diagnostic flags
72 such as -Wall, -Wextra, -pedantic. Even more importantly, do not
73 specify unportable compiler flags.
74
75 * $LDFLAGS: do not hard-code linker flags like -s (symbol stripping) or -g,
76 -static or such flags.
Signed-off-by: Christoph Lohmann <[email protected]>
Diffstat:
M config.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/config.mk b/config.mk
@@ -16,8 +16,8 @@ CPPFLAGS = -DVERSION=\"${VERSION}\" -D_POSIX_C_SOURCE=200809L…
# BSD
#CPPFLAGS = -DVERSION=\"${VERSION}\"
-CFLAGS += -g -std=c99 -pedantic -Wall -Wvariadic-macros -Os ${INCS} ${CPPFLAGS}
-LDFLAGS += -g ${LIBS}
+CFLAGS += -std=c99 ${INCS} ${CPPFLAGS}
+LDFLAGS += ${LIBS}
# compiler and linker
# CC = cc
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.