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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
429 B
Diff
Raw Normal View History

2020-03-18 15:34:23 +00:00
diff --git a/Makefile b/Makefile
index b3d5aeb..a5acc08 100644
2020-03-18 15:34:23 +00:00
--- a/Makefile
+++ b/Makefile
@@ -83,9 +83,7 @@ endif
2020-03-18 15:34:23 +00:00
MOREFLAGS := $(CFLAGS_$(TARGET))
2020-03-18 15:34:23 +00:00
-DIVSUF := $(SRCDIR)/libdivsufsort-2.0.1
2020-03-18 15:34:23 +00:00
-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