blob: e2075b5a0ef6a79b5a1aefab19fdd4fc7f7d1f5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
diff --git a/Makefile b/Makefile
index 36ba443..cbdf37a 100644
--- a/Makefile
+++ b/Makefile
@@ -135,7 +135,8 @@ ifdef USE_JODY_HASH
OBJS_CLEAN += xxhash.o
else
ifndef EXTERNAL_HASH_LIB
- OBJS += xxhash.o
+ CFLAGS += `pkg-config --cflags libxxhash`
+ LDFLAGS += `pkg-config --libs libxxhash`
endif
endif # USE_JODY_HASH
diff --git a/filehash.c b/filehash.c
index 39edf6b..d00fa71 100644
--- a/filehash.c
+++ b/filehash.c
@@ -21,7 +21,7 @@
#include "interrupt.h"
#include "progress.h"
#include "jdupes.h"
-#include "xxhash.h"
+#include <xxhash.h>
const char *hash_algo_list[2] = {
"xxHash64 v2",
|