summarylogtreecommitdiffstats
path: root/jdupes-system-xxhash.patch
blob: 44dc991a71fa9019f69cf7fc74603cdcc8cee8f8 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
diff --git a/Makefile b/Makefile
index 7e09923..df9566b 100644
--- a/Makefile
+++ b/Makefile
@@ -126,7 +126,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/jdupes.c b/jdupes.c
index e3e5762..bc66c05 100644
--- a/jdupes.c
+++ b/jdupes.c
@@ -62,7 +62,7 @@
 #include "version.h"
 
 #ifndef USE_JODY_HASH
- #include "xxhash.h"
+ #include <xxhash.h>
 #endif
 #ifdef ENABLE_DEDUPE
  #ifdef __linux__
diff --git a/jdupes.h b/jdupes.h
index 8b05d87..2975fbb 100644
--- a/jdupes.h
+++ b/jdupes.h
@@ -28,7 +28,7 @@ extern "C" {
 #include <sys/types.h>
 
 #ifndef USE_JODY_HASH
-#include "xxhash.h"
+#include <xxhash.h>
 #endif /* USE_JODY_HASH */
 
 /* Set hash type (change this if swapping in a different hash function) */