This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH RFA] tweak expect EXP_LIB_SPEC to use libdir.
- From: cgd at broadcom dot com
- To: dj at redhat dot com
- Cc: binutils at sources dot redhat dot com,gdb-patches at sources dot redhat dot com
- Date: 01 Oct 2003 21:40:27 -0700
- Subject: [PATCH RFA] tweak expect EXP_LIB_SPEC to use libdir.
Problem found on mips64-linux. On that system type (with default
compile flags), one configures with --prefix=/usr --libdir=/usr/lib32,
since the default ABI is n32 and you want the n32 libs to go in the
right place.
(exec_prefix not specially defined, so it's ${prefix}. By default,
libdir is ${exec_prefix}/lib.)
expect would install its lib under ${libdir} as expected, but would
try to link the expect-to-be-installed against the expect library
under ${exec_prefix}/lib.
Once that's fixed, it works quite nicely. 8-)
cgd
--
2003-10-01 Chris Demetriou <cgd@broadcom.com>
* configure.in (EXP_LIB_SPEC): Use ${libdir} rather than
${exec_prefix}/lib.
* configure: Regenerate.
Index: configure.in
===================================================================
RCS file: /cvs/src/src/expect/configure.in,v
retrieving revision 1.7
diff -u -p -r1.7 configure.in
--- configure.in 29 Jan 2003 23:46:22 -0000 1.7
+++ configure.in 2 Oct 2003 04:22:24 -0000
@@ -1165,7 +1165,7 @@ if test $ac_cv_sys_long_file_names = no;
fi
EXP_BUILD_LIB_SPEC="-L`pwd` -lexpect${EXP_LIB_VERSION}"
-EXP_LIB_SPEC="-L\${exec_prefix}/lib -lexpect${EXP_LIB_VERSION}"
+EXP_LIB_SPEC="-L\${libdir} -lexpect${EXP_LIB_VERSION}"
EXP_UNSHARED_LIB_FILE=libexpect${EXP_LIB_VERSION}.a
EXP_BUILD_LIB_SPEC=${EXP_UNSHARED_LIB_FILE}