From 8a3ace677fdd27fcf220057033bec9fe36914162 Mon Sep 17 00:00:00 2001 From: Russell Standish Date: Fri, 20 Oct 2023 16:35:38 +1100 Subject: [PATCH] Disable READLINE for MXE builds. Static MXE builds have a duplicate symbol error for readline. --- include/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/Makefile b/include/Makefile index b441d60..39a3035 100644 --- a/include/Makefile +++ b/include/Makefile @@ -385,10 +385,12 @@ LIBTIRPC=$(shell if $(PKG_CONFIG) libtirpc; then $(PKG_CONFIG) --libs libtirpc; FLAGS+=-DXDR_PACK $(LIBTIRPC) endif +ifndef MXE ifdef READLINE FLAGS+=-DREADLINE LIBS+=-lreadline -lncurses endif +endif ifdef BDB FLAGS+=-DBDB