$NetBSD: patch-Makefile,v 1.1 2025/07/16 19:35:28 schmonz Exp $

Use pkgsrc-provided libs.

--- Makefile.orig	2020-11-01 11:13:37.000000000 +0000
+++ Makefile
@@ -1,14 +1,14 @@
 
 CC ?= gcc
 CFLAGS ?= -Wall -Wextra -O2
-LIBS ?= -lexecline -lskarnet
+LIBS ?= -lexecline -lskarnet -llinenoise
 
-SOURCES := execshell.c linenoise/linenoise.c linenoise/encodings/utf8.c
+SOURCES := execshell.c # linenoise/linenoise.c linenoise/encodings/utf8.c
 
 .PHONY: all clean
 
 all:
-	$(CC) $(CFLAGS) -o execshell $(SOURCES) $(LIBS)
+	$(CC) $(CFLAGS) -o execshell $(SOURCES) $(LDFLAGS) $(LIBS)
 
 clean:
 	rm -f execshell
