From a7bb4f0046c03e6561454b8f142521fa36c42da1 Mon Sep 17 00:00:00 2001 From: Max Moroz Date: Tue, 18 Jul 2017 06:59:23 -0700 Subject: [PATCH] [libpsl] Remove redundant flags for disabling UBSan's vptr check. (#719) --- projects/libpsl/build.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/projects/libpsl/build.sh b/projects/libpsl/build.sh index 640194ca4..7b48d3c3a 100755 --- a/projects/libpsl/build.sh +++ b/projects/libpsl/build.sh @@ -22,12 +22,11 @@ export LDFLAGS="-L$DEPS_PATH/lib" cd $SRC/icu/source UBSAN_OPTIONS=detect_leaks=0 \ -CFLAGS="$CFLAGS -fno-sanitize=function,vptr" \ -CXXFLAGS="$CXXFLAGS -fno-sanitize=function,vptr" \ -CPPFLAGS="$CPPFLAGS -fno-sanitize=function,vptr" \ -LDFLAGS="$LDFLAGS -fno-sanitize=undefined" \ - ./configure --disable-shared --enable-static --disable-extras --disable-icuio --disable-layoutex \ - --disable-tests --disable-samples --with-data-packaging=static --prefix=$DEPS_PATH +CFLAGS="$CFLAGS -fno-sanitize=vptr" \ +CXXFLAGS="$CXXFLAGS -fno-sanitize=vptr" \ +CPPFLAGS="$CPPFLAGS -fno-sanitize=vptr" \ +./configure --disable-shared --enable-static --disable-extras --disable-icuio --disable-layoutex \ + --disable-tests --disable-samples --with-data-packaging=static --prefix=$DEPS_PATH # ugly hack to avoid build error echo '#include ' >>i18n/digitlst.h make -j$(nproc)