From 539f0db2338c5692c95fc66e3871262c93e682f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Thu, 9 Mar 2017 11:49:36 +0000 Subject: [PATCH] [libreoffice] move build script into libreoffice git (#443) to make it easier to keep it in sync with what it builds --- projects/libreoffice/build.sh | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/projects/libreoffice/build.sh b/projects/libreoffice/build.sh index c4084b589..cec8368db 100755 --- a/projects/libreoffice/build.sh +++ b/projects/libreoffice/build.sh @@ -1,28 +1,3 @@ #!/bin/bash -eu -#shuffle CXXFLAGS -stdlib=libc++ arg into CXX as well because we use -#the CXX as the linker and need to pass -stdlib=libc++ to build -export CXX="$CXX -stdlib=libc++" -#similarly force the -fsanitize etc args in as well as pthread to get -#things to link successfully during the build -export LDFLAGS="$CFLAGS -lpthread" - -cd $WORK -$SRC/libreoffice/autogen.sh --with-distro=LibreOfficeOssFuzz --with-external-tar=$SRC - -#build-time rsc tool leaks a titch -export ASAN_OPTIONS="detect_leaks=0" - -make fuzzers - -#some minimal fonts required -cp $SRC/libreoffice/extras/source/truetype/symbol/opens___.ttf instdir/share/fonts/truetype/Liberation* $OUT -#minimal runtime requirements -rm -rf $OUT/services $OUT/types $OUT/resource $OUT/*rdb -pushd instdir/program -cp -r *fuzzer *rc *rdb services types resource $OUT -mv $OUT/services/services.rdb $OUT/services.rdb -popd - -#starting corpuses -cp $SRC/*_seed_corpus.zip $OUT +$SRC/libreoffice/bin/oss-fuzz-build.sh