File: set-DEB_BUILD_OPTIONS

package info (click to toggle)
tcptrace 6.6.7-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 9,440 kB
  • sloc: ansic: 24,663; sh: 3,704; makefile: 237; lex: 162; yacc: 99
file content (16 lines) | stat: -rw-r--r-- 456 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Index: tcptrace/Makefile.in
===================================================================
--- tcptrace.orig/Makefile.in
+++ tcptrace/Makefile.in
@@ -152,6 +152,11 @@ INCLS = -I. @V_INCLS@ ${PCAP_INCS}
 # FreeBSD needs	-Ae
 # HP needs	-Ae
 CFLAGS = $(CCOPT) $(DEFINES) @DEFS@ @V_DEFINES@ $(INCLS)
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+CFLAGS += -O0
+else
+CFLAGS += -g -Wall -O2
+endif
 
 # Standard LIBS
 LDLIBS = @LIBS@ ${PCAP_LDLIBS}