📜  DPKG_BUILDFLAGS_EXPORT_ENVVAR - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:13.678000             🧑  作者: Mango

代码示例1
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