aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-11-05 21:21:31 +0700
committerMike Frysinger <vapier@gentoo.org>2022-11-05 21:21:31 +0700
commit5a9886170b3bc9027ec72ab425fb0e3d4a1aa330 (patch)
tree42949595ccec8f6993a19ccbc6a7e48b2bdc7652
parentc95bd9111ee75556a4a6ba51603856cee0afef2b (diff)
downloadgdb-5a9886170b3bc9027ec72ab425fb0e3d4a1aa330.zip
gdb-5a9886170b3bc9027ec72ab425fb0e3d4a1aa330.tar.gz
gdb-5a9886170b3bc9027ec72ab425fb0e3d4a1aa330.tar.bz2
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.
-rwxr-xr-xsim/configure2
-rw-r--r--sim/m4/sim_ac_platform.m42
2 files changed, 2 insertions, 2 deletions
diff --git a/sim/configure b/sim/configure
index d8b734e..0a0eb6d 100755
--- a/sim/configure
+++ b/sim/configure
@@ -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
diff --git a/sim/m4/sim_ac_platform.m4 b/sim/m4/sim_ac_platform.m4
index 467987e..abfb2bd 100644
--- a/sim/m4/sim_ac_platform.m4
+++ b/sim/m4/sim_ac_platform.m4
@@ -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,