summarylogtreecommitdiffstats
path: root/pdftxt-fix-flags.patch
blob: 5e2b1ca90a4b5a407adc7db48cdb40ac1e6b10f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- a/Makefile	2023-05-29 16:19:43.216071155 -0400
+++ b/Makefile	2023-05-29 16:21:19.496966792 -0400
@@ -1,12 +1,12 @@
 PREFIX = .
-CC = cc
+CC ?= cc
-CFLAGS = -Wall -O2 -I$(PREFIX)/include
-LDFLAGS = -L$(PREFIX)/lib
+CFLAGS += -Wall -O2 -I$(PREFIX)/include
+LDFLAGS += -L$(PREFIX)/lib
 
 all: pdftxt
 %.o: %.c
 	$(CC) -c $(CFLAGS) $<
 pdftxt: pdftxt.o
-	$(CC) -o $@ $^ $(LDFLAGS) -lmupdf -lmupdfthird -lm
+	$(CC) -o $@ $^ $(LDFLAGS) -lfreetype -lgumbo -lharfbuzz -ljbig2dec -ljpeg -lmupdf -lopenjp2 -lz -lm
 clean:
 	rm -f *.o pdftxt