]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed : build zstd cli after libzstd
authorYann Collet <cyan@fb.com>
Thu, 2 Mar 2017 05:02:06 +0000 (21:02 -0800)
committerYann Collet <cyan@fb.com>
Thu, 2 Mar 2017 05:02:06 +0000 (21:02 -0800)
programs/Makefile

index db718d14c44e92ff867150b7592c2daacfdd05e1..407a4f374716c817d6f37008db6f68a837f597bb 100644 (file)
@@ -24,7 +24,9 @@ else
 ALIGN_LOOP =
 endif
 
-CPPFLAGS+= -I$(ZSTDDIR) -I$(ZSTDDIR)/common -I$(ZSTDDIR)/compress -I$(ZSTDDIR)/dictBuilder
+CPPFLAGS+= -I$(ZSTDDIR) -I$(ZSTDDIR)/common -I$(ZSTDDIR)/compress \
+           -I$(ZSTDDIR)/dictBuilder \
+           -DXXH_NAMESPACE=ZSTD_   # because xxhash.o already compiled with this macro from library
 CFLAGS  ?= -O3
 DEBUGFLAGS = -g -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow \
           -Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-after-statement \