ladybird/Ports/ed/patches/0003-Manually-link-with-pcre2.patch

23 lines
786 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Brian Callahan <ibara@users.noreply.github.com>
Date: Fri, 1 Apr 2022 02:54:00 +0200
Subject: [PATCH] Manually link with pcre2
Co-Authored-By: EWouters <6179932+EWouters@users.noreply.github.com>
---
Makefile.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.in b/Makefile.in
index f716df4..c1a7880 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -20,7 +20,7 @@ objs = buffer.o carg_parser.o global.o io.o main.o main_loop.o regex.o signal.o
all : $(progname) r$(progname)
$(progname) : $(objs)
- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(objs)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(objs) -lpcre2-posix -lpcre2-8
r$(progname) : r$(progname).in
cat $(VPATH)/r$(progname).in > $@