Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Makefile 抑制CC和CFLAG的清除_Makefile_Autotools_Cc - Fatal编程技术网

Makefile 抑制CC和CFLAG的清除

Makefile 抑制CC和CFLAG的清除,makefile,autotools,cc,Makefile,Autotools,Cc,我正在尝试构建一个包含检测的包。我想用Clang的消毒液运行它的测试套件 我的配置如下: export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}/usr/local/lib/clang/3.4.2/lib/linux export CC="/usr/local/bin/clang -fsanitize=address -fsanitize=undefined" export CXX="/usr/local/bin/clang++

我正在尝试构建一个包含检测的包。我想用Clang的消毒液运行它的测试套件

我的配置如下:

export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}/usr/local/lib/clang/3.4.2/lib/linux
export CC="/usr/local/bin/clang -fsanitize=address -fsanitize=undefined"
export CXX="/usr/local/bin/clang++ -fsanitize=address -fsanitize=undefined -fno-sanitize=vptr"

./configure
make
但是,当
make
进入其中一个子目录时,会清除
CC
CFLAGS
,这会导致编译/链接失败:

$ make
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
make[1]: Entering directory `/home/jeffrey/asterisk-11.11.0/menuselect'
make[1]: `makeopts' is up to date.
make[1]: Leaving directory `/home/jeffrey/asterisk-11.11.0/menuselect'
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" menuselect
make[1]: Entering directory `/home/jeffrey/asterisk-11.11.0/menuselect'
/usr/local/bin/clang  -g -D_GNU_SOURCE -Wall  -o menuselect menuselect.o strcompat.o menuselect_stub.o mxml/libmxml.a 
mxml/libmxml.a(mxml-attr.o): In function `mxmlElementGetAttr':
/home/jeffrey/asterisk-11.11.0/menuselect/mxml/mxml-attr.c:66: undefined reference to `__ubsan_handle_type_mismatch'
/home/jeffrey/asterisk-11.11.0/menuselect/mxml/mxml-attr.c:66: undefined reference to `__ubsan_handle_type_mismatch'
...

< >我如何告诉自动工具停止使用我的代码> cc/<代码>和<代码> cFLAGs< /Cal> > /p>这个案子中的罪魁祸首可能是LbTooo> /Cord>,因为我不知道你在哪里编译任何C或C++文件。我怀疑它是LIbTooT。检查生成文件是否覆盖CC&co