nixpkgs/pkgs/tools/compression/flips/use-system-libdivsufsort.patch

16 lines
419 B
Diff
Raw Normal View History

2020-03-18 16:34:23 +01:00
diff --git a/Makefile b/Makefile
index c9d8b6d..9d66b0b 100644
--- a/Makefile
+++ b/Makefile
@@ -79,9 +79,7 @@ endif
MOREFLAGS := $(CFLAGS_$(TARGET))
-DIVSUF := libdivsufsort-2.0.1
-SOURCES += $(DIVSUF)/lib/divsufsort.c $(DIVSUF)/lib/sssort.c $(DIVSUF)/lib/trsort.c
-MOREFLAGS += -I$(DIVSUF)/include -DHAVE_CONFIG_H -D__STDC_FORMAT_MACROS
+MOREFLAGS += -ldivsufsort
ifeq ($(TARGET),gtk)
CFLAGS_G += -fopenmp