From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7887 invoked by alias); 2 Oct 2003 04:40:43 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 7874 invoked from network); 2 Oct 2003 04:40:42 -0000 Received: from unknown (HELO mms3.broadcom.com) (63.70.210.38) by sources.redhat.com with SMTP; 2 Oct 2003 04:40:42 -0000 Received: from 63.70.210.1 by mms3.broadcom.com with ESMTP (Broadcom SMTP Relay (MMS v5.5.3)); Wed, 01 Oct 2003 21:40:40 -0700 Received: from mail-sj1-5.sj.broadcom.com (mail-sj1-5.sj.broadcom.com [10.16.128.236]) by mon-irva-11.broadcom.com (8.9.1/8.9.1) with ESMTP id VAA06009; Wed, 1 Oct 2003 21:39:59 -0700 (PDT) Received: from ldt-sj3-010.sj.broadcom.com (ldt-sj3-010 [10.21.64.10]) by mail-sj1-5.sj.broadcom.com (8.12.9/8.12.9/SSF) with ESMTP id h924eSov019482; Wed, 1 Oct 2003 21:40:28 -0700 (PDT) Received: (from cgd@localhost) by ldt-sj3-010.sj.broadcom.com ( 8.11.6/8.9.3) id h924eS822578; Wed, 1 Oct 2003 21:40:28 -0700 X-Authentication-Warning: ldt-sj3-010.sj.broadcom.com: cgd set sender to cgd@broadcom.com using -f To: dj@redhat.com cc: binutils@sources.redhat.com, gdb-patches@sources.redhat.com Subject: [PATCH RFA] tweak expect EXP_LIB_SPEC to use libdir. From: cgd@broadcom.com Date: Thu, 02 Oct 2003 04:40:00 -0000 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 X-WSS-ID: 136573C22131394-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2003-10/txt/msg00019.txt.bz2 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 * 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}