]> git.ipfire.org Git - thirdparty/zstd.git/commit
Adds LZ4 support by default if LZ4 is available
authorW. Felix Handte <w@felixhandte.com>
Thu, 21 Sep 2017 18:29:35 +0000 (11:29 -0700)
committerW. Felix Handte <w@felixhandte.com>
Fri, 22 Sep 2017 20:28:56 +0000 (13:28 -0700)
commit360238733a50e3c5397b0665f6653d976f7d0e43
tree62cfabb56ee41b9c3732296cca6b992a8ec61250
parent14946af10caf48b8b1ac550a0dec65c0d4233ee8
Adds LZ4 support by default if LZ4 is available

Simple makefile change + quick typename change

Test:

  make clean
  make
  # successfully produces binary without lz4 support

  make clean
  # with flags to pick up my lz4 build
  make MOREFLAGS="-L/home/felixh/prog/lz4/lib -I/home/felixh/prog/lz4/lib"
  # successfully produces binary with lz4 support

  echo "TEST TEST TEST THIS IS A TEST STRING PLEASE TEST THIS PLEASE OK THANK YOU" | \
    ./lz4/lz4 | \
    LD_LIBRARY_PATH=/home/felixh/prog/lz4/lib ./zstd/zstd -d
  # successfully prints TEST TEST TEST THIS IS A TEST STRING PLEASE TEST THIS PLEASE OK THANK YOU
programs/Makefile
programs/fileio.c