From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Martin Wilck Date: Thu, 27 Oct 2022 18:51:52 +0200 Subject: [PATCH] multipathd: Makefile: fix compilation flags for libedit The workaround for the wrong prototype in older libedit versions had ended up in the code for libreadline. Fix it, and use simple make variables. Fixes: 2bd80f6 ("multipathd: fix incompatible pointer type error with libedit") Signed-off-by: Martin Wilck Signed-off-by: Benjamin Marzinski --- multipathd/Makefile | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/multipathd/Makefile b/multipathd/Makefile index cdda371b..7221b6af 100644 --- a/multipathd/Makefile +++ b/multipathd/Makefile @@ -31,17 +31,17 @@ LIBDEPS := -L$(multipathdir) -lmultipath -L$(mpathpersistdir) -lmpathpersist \ -ldevmapper $(CLI_LIBDEPS) ifeq ($(READLINE),libedit) -RL_CPPFLAGS = -DUSE_LIBEDIT -RL_LIBDEPS += -ledit -endif -ifeq ($(READLINE),libreadline) -RL_CPPFLAGS += -DUSE_LIBREADLINE -RL_LIBDEPS += -lreadline -# See comment in uxclnt.c +RL_CPPFLAGS := -DUSE_LIBEDIT +RL_LIBDEPS := -ledit +# See comment in multipathc.c ifeq ($(shell sed -En 's/.*\