File: makefile-append-cflags

package info (click to toggle)
nsxiv 33-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 496 kB
  • sloc: ansic: 4,818; makefile: 93; sh: 88
file content (16 lines) | stat: -rw-r--r-- 474 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Append CFLAGS
Author: Nick Morrott <nickm@debian.org>
Forwarded: not-needed
Last-Update: 2024-02-21
---
--- a/config.mk
+++ b/config.mk
@@ -17,7 +17,7 @@
 HAVE_LIBEXIF  = $(OPT_DEP_DEFAULT)
 
 # CFLAGS, any additional compiler flags goes here
-CFLAGS = -Wall -pedantic -O2 -DNDEBUG
+CFLAGS += -Wall -pedantic -O2 -DNDEBUG
 # Uncomment for a debug build using gcc/clang
 # CFLAGS = -Wall -pedantic -DDEBUG -g3 -fsanitize=address,undefined
 # LDFLAGS = $(CFLAGS)