[infra] build.sh cleanup

This commit is contained in:
Mike Aizatsky 2016-11-29 11:33:34 -08:00
parent f30ec07cc2
commit 879120437d
6 changed files with 9 additions and 10 deletions

View File

@ -62,14 +62,13 @@ BUILD_TEMPLATE = """\
# #
################################################################################ ################################################################################
# build the project. # build project
# e.g. # e.g.
#
# ./autogen.sh # ./autogen.sh
# ./configure # ./configure
# make -j$(nproc) all # make -j$(nproc) all
# build your fuzzer(s) # build fuzzers
# e.g. # e.g.
# $CXX $CXXFLAGS -std=c++11 -Iinclude \\ # $CXX $CXXFLAGS -std=c++11 -Iinclude \\
# /path/to/name_of_fuzzer.cc -o /out/name_of_fuzzer \\ # /path/to/name_of_fuzzer.cc -o /out/name_of_fuzzer \\

View File

@ -15,7 +15,7 @@
# #
################################################################################ ################################################################################
# Build the target. # Build the project.
./buildconf ./buildconf
./configure --enable-debug ./configure --enable-debug
make clean make clean

View File

@ -138,7 +138,7 @@ make install
rm $FFMPEG_DEPS_PATH/lib/*.so rm $FFMPEG_DEPS_PATH/lib/*.so
rm $FFMPEG_DEPS_PATH/lib/*.so.* rm $FFMPEG_DEPS_PATH/lib/*.so.*
# Build the target. # Build ffmpeg.
cd $SRC/ffmpeg cd $SRC/ffmpeg
PKG_CONFIG_PATH="$FFMPEG_DEPS_PATH/lib/pkgconfig" ./configure \ PKG_CONFIG_PATH="$FFMPEG_DEPS_PATH/lib/pkgconfig" ./configure \
--cc=$CC --cxx=$CXX --ld="$CXX $CXXFLAGS -std=c++11" \ --cc=$CC --cxx=$CXX --ld="$CXX $CXXFLAGS -std=c++11" \

View File

@ -15,12 +15,12 @@
# #
################################################################################ ################################################################################
# build the target. # build the project
./build/autogen.sh ./build/autogen.sh
./configure ./configure
make -j$(nproc) all make -j$(nproc) all
# build your fuzzer(s) # build fuzzer(s)
$CXX $CXXFLAGS -Ilibarchive \ $CXX $CXXFLAGS -Ilibarchive \
$SRC/libarchive_fuzzer.cc -o $OUT/libarchive_fuzzer \ $SRC/libarchive_fuzzer.cc -o $OUT/libarchive_fuzzer \
-lfuzzer .libs/libarchive.a \ -lfuzzer .libs/libarchive.a \

View File

@ -15,7 +15,7 @@
# #
################################################################################ ################################################################################
# Build the target. # Build the project.
./autogen.sh ./autogen.sh
./configure ./configure

View File

@ -17,11 +17,11 @@
cd pcre2 cd pcre2
# build the library. # build project
./autogen.sh ./autogen.sh
./configure --enable-fuzz-support --enable-never-backslash-C --with-match-limit=1000 --with-match-limit-recursion=1000 ./configure --enable-fuzz-support --enable-never-backslash-C --with-match-limit=1000 --with-match-limit-recursion=1000
make -j$(nproc) clean all make -j$(nproc) clean all
# Build the target. # build fuzer
$CXX $CXXFLAGS -o $OUT/pcre2_fuzzer \ $CXX $CXXFLAGS -o $OUT/pcre2_fuzzer \
-lfuzzer .libs/libpcre2-fuzzsupport.a .libs/libpcre2-8.a -lfuzzer .libs/libpcre2-fuzzsupport.a .libs/libpcre2-8.a