diff --git a/docker_build/debian11sonic/build_hsflowd b/docker_build/debian11sonic/build_hsflowd index 6b0ff3c..20005f3 100755 --- a/docker_build/debian11sonic/build_hsflowd +++ b/docker_build/debian11sonic/build_hsflowd @@ -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 "" diff --git a/src/sflow/Makefile b/src/sflow/Makefile index 13468fa..71f6c7f 100644 --- a/src/sflow/Makefile +++ b/src/sflow/Makefile @@ -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