DEB_BUILD_OPTIONS code example
Example: DEB_BUILD_OPTIONS
AAA=`dpkg-buildflags --get CFLAGS`
GO2="-g -O2"
OPT3="-g3 -O3"
CFLAGS="${AAA/$GO2/$OPT3}"
export CFLAGS
LD=gcc
LDFLAGS="${CFLAGS} ${LDFLAGS}"
AR=gcc-ar
RANLIB=gcc-ranlib
echo $CFLAGS
export DEB_CFLAGS_SET=$CFLAGS
dpkg-buildflags --get CFLAGS