blob: f1742ccc7ada4c8d87f1d574a8b50e204e2bc67c (
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 efbd1ce..285e373 100644
--- a/Makefile
+++ b/Makefile
@@ -139,7 +139,8 @@ COMPILER_OPTIONS += -DUSE_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 f47dfed..27bd3c5 100644
--- a/jdupes.c
+++ b/jdupes.c
@@ -42,7 +42,7 @@
#include <sys/time.h>
#include "jdupes.h"
#ifndef USE_JODY_HASH
- #include "xxhash.h"
+ #include <xxhash.h>
#endif
#ifdef ENABLE_DEDUPE
#include <sys/utsname.h>
diff --git a/jdupes.h b/jdupes.h
index 185e630..e375bb0 100644
--- a/jdupes.h
+++ b/jdupes.h
@@ -30,7 +30,7 @@ extern "C" {
#include <libjodycode.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) */
|