Skip to content

Commit

Permalink
default compiler flags to -g -O2
Browse files Browse the repository at this point in the history
  • Loading branch information
sflow committed Jun 20, 2024
1 parent 1d8d42d commit 2bb54ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker_build/debian11sonic/build_hsflowd
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ echo "build_hsflowd on platform: $1"

git clone https://github.com/sflow/host-sflow \
&& cd host-sflow \
&& make deb OPT=-g FEATURES="SONIC"
&& make deb FEATURES="SONIC"

for deb in `ls *.deb`; do cp "$deb" "/packages/${deb/hsflowd/hsflowd-$1}"; done
echo ""
Expand Down
4 changes: 2 additions & 2 deletions src/sflow/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
HEADERS= sflow_api.h sflow_xdr.h sflow.h Makefile

#OPT = -O3 -DNDEBUG
#OPT = -g -ggdb -O2
OPT= -g -ggdb
OPT = -g -ggdb -O2
#OPT= -g -ggdb

CFLAGS= -D_GNU_SOURCE -DSTDC_HEADERS $(OPT) -Wall -Wcast-align
CFLAGS += -DSFL_USE_32BIT_INDEX -Wno-unused-function
Expand Down

0 comments on commit 2bb54ed

Please sign in to comment.