sim: fix readline linkage

Now that we link programs in the top dir instead of the arch subdir,
update the readline library path to be relative to the top dir.
This commit is contained in:
Mike Frysinger
2022-11-05 21:21:31 +07:00
parent c95bd9111e
commit 5a9886170b
2 changed files with 2 additions and 2 deletions

2
sim/configure vendored
View File

@ -13446,7 +13446,7 @@ fi
if test -r ../readline/Makefile; then
READLINE_LIB=../../readline/readline/libreadline.a
READLINE_LIB=../readline/readline/libreadline.a
READLINE_CFLAGS='-I$(READLINE_SRC)/..'
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5

View File

@ -190,7 +190,7 @@ AC_SUBST(TERMCAP_LIB)
dnl We prefer the in-tree readline. Top-level dependencies make sure
dnl src/readline (if it's there) is configured before src/sim.
if test -r ../readline/Makefile; then
READLINE_LIB=../../readline/readline/libreadline.a
READLINE_LIB=../readline/readline/libreadline.a
READLINE_CFLAGS='-I$(READLINE_SRC)/..'
else
AC_CHECK_LIB(readline, readline, READLINE_LIB=-lreadline,