iMakefile: do not hardcode optimization and linker flags - pointtools - Simple point utilities to hold text presentations. Err bitreich.org 70
hgit clone git://bitreich.org/pointtools/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/pointtools/ URL:git://bitreich.org/pointtools/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/pointtools/ bitreich.org 70
1Log /scm/pointtools/log.gph bitreich.org 70
1Files /scm/pointtools/files.gph bitreich.org 70
1Refs /scm/pointtools/refs.gph bitreich.org 70
1Tags /scm/pointtools/tag bitreich.org 70
1README /scm/pointtools/file/README.md.gph bitreich.org 70
1LICENSE /scm/pointtools/file/LICENSE.gph bitreich.org 70
i--- Err bitreich.org 70
1commit e56e6e57aa64f7695dca271de1755794489b2dc6 /scm/pointtools/commit/e56e6e57aa64f7695dca271de1755794489b2dc6.gph bitreich.org 70
1parent e0d87452da86dd8a57838bcaa8b8c817def194b0 /scm/pointtools/commit/e0d87452da86dd8a57838bcaa8b8c817def194b0.gph bitreich.org 70
hAuthor: Anders Damsgaard <anders@adamsgaard.dk> URL:mailto:anders@adamsgaard.dk bitreich.org 70
iDate: Mon, 14 Jun 2021 09:37:53 +0200 Err bitreich.org 70
i Err bitreich.org 70
iMakefile: do not hardcode optimization and linker flags Err bitreich.org 70
i Err bitreich.org 70
iAdhere to git://bitreich.org/bitreich-style/c/makefile-guideline.txt Err bitreich.org 70
i Err bitreich.org 70
i71 * $CFLAGS: do not hard-code optimization flags like (-O2) or diagnostic flags Err bitreich.org 70
i72 such as -Wall, -Wextra, -pedantic. Even more importantly, do not Err bitreich.org 70
i73 specify unportable compiler flags. Err bitreich.org 70
i74 Err bitreich.org 70
i75 * $LDFLAGS: do not hard-code linker flags like -s (symbol stripping) or -g, Err bitreich.org 70
i76 -static or such flags. Err bitreich.org 70
i Err bitreich.org 70
iSigned-off-by: Christoph Lohmann <20h@r-36.net> Err bitreich.org 70
i Err bitreich.org 70
iDiffstat: Err bitreich.org 70
i M config.mk | 4 ++-- Err bitreich.org 70
i Err bitreich.org 70
i1 file changed, 2 insertions(+), 2 deletions(-) Err bitreich.org 70
i--- Err bitreich.org 70
1diff --git a/config.mk b/config.mk /scm/pointtools/file/config.mk.gph bitreich.org 70
i@@ -16,8 +16,8 @@ CPPFLAGS = -DVERSION=\"${VERSION}\" -D_POSIX_C_SOURCE=200809L -DNEED_STRLCPY Err bitreich.org 70
i # BSD Err bitreich.org 70
i #CPPFLAGS = -DVERSION=\"${VERSION}\" Err bitreich.org 70
i Err bitreich.org 70
i-CFLAGS += -g -std=c99 -pedantic -Wall -Wvariadic-macros -Os ${INCS} ${CPPFLAGS} Err bitreich.org 70
i-LDFLAGS += -g ${LIBS} Err bitreich.org 70
i+CFLAGS += -std=c99 ${INCS} ${CPPFLAGS} Err bitreich.org 70
i+LDFLAGS += ${LIBS} Err bitreich.org 70
i Err bitreich.org 70
i # compiler and linker Err bitreich.org 70
i # CC = cc Err bitreich.org 70
.
Response:
text/plain