diff options
author | Varun Khaneja <aawc@users.noreply.github.com> | 2018-06-21 13:49:02 -0700 |
---|---|---|
committer | Abhishek Arya <inferno@chromium.org> | 2018-06-21 13:49:02 -0700 |
commit | 8fff19181d166181eff60e5702a9b5705daa8c49 (patch) | |
tree | a39da9f4460d63852aceb1b08e6ad4e74db35e6f | |
parent | 2546ac400fba5726da5ce72fa0ce90e67392bd57 (diff) |
Add -DSILENT -DRAR_NOCRYPT defines when compiling unrar (#1551)
-rw-r--r-- | projects/unrar/build.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/projects/unrar/build.sh b/projects/unrar/build.sh index b090dc3a..a611eae2 100644 --- a/projects/unrar/build.sh +++ b/projects/unrar/build.sh @@ -15,16 +15,18 @@ # ################################################################################ +UNRAR_DEFINES="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DRARDLL -DSILENT -DRAR_NOCRYPT" +UNRAR_WNOS="-Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else" UNRAR_SRC_DIR="$SRC/unrar" # build 'lib'. This builds libunrar.a and libunrar.so # -fPIC is required for successful compilation. -make CXX=$CXX CXXFLAGS="$CXXFLAGS -fPIC" -C $UNRAR_SRC_DIR lib +make CXX=$CXX CXXFLAGS="$CXXFLAGS -fPIC $UNRAR_DEFINES $UNRAR_WNOS" \ + -C $UNRAR_SRC_DIR lib # remove the .so file so that the linker links unrar statically. rm -v $UNRAR_SRC_DIR/libunrar.so # build fuzzer $CXX $CXXFLAGS -I. $UNRAR_SRC_DIR/unrar_fuzzer.cc -o $OUT/unrar_fuzzer \ - -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DRARDLL \ - -lFuzzingEngine -L$UNRAR_SRC_DIR -lunrar + $UNRAR_DEFINES -lFuzzingEngine -L$UNRAR_SRC_DIR -lunrar |