Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH RFA] tweak expect EXP_LIB_SPEC to use libdir.
@ 2003-10-02  4:40 cgd
  2003-10-02  4:53 ` DJ Delorie
  0 siblings, 1 reply; 6+ messages in thread
From: cgd @ 2003-10-02  4:40 UTC (permalink / raw)
  To: dj; +Cc: binutils, gdb-patches

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}
 



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-10-02 18:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-02  4:40 [PATCH RFA] tweak expect EXP_LIB_SPEC to use libdir cgd
2003-10-02  4:53 ` DJ Delorie
     [not found]   ` <mailpost.1065070425.24076@news-sj1-1>
2003-10-02  5:25     ` cgd
2003-10-02  5:29       ` cgd
     [not found]       ` <mailpost.1065072338.24856@news-sj1-1>
2003-10-02 18:10         ` cgd
2003-10-02 18:35           ` DJ Delorie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox