From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17093 invoked by alias); 28 Nov 2010 20:42:52 -0000 Received: (qmail 17074 invoked by uid 22791); 28 Nov 2010 20:42:51 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,TW_BG,TW_IB,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from hiauly1.hia.nrc.ca (HELO hiauly1.hia.nrc.ca) (132.246.100.193) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 28 Nov 2010 20:42:47 +0000 Received: by hiauly1.hia.nrc.ca (Postfix, from userid 1000) id 738734D30; Sun, 28 Nov 2010 15:42:43 -0500 (EST) Date: Mon, 29 Nov 2010 00:13:00 -0000 From: John David Anglin To: gcc-patches@gcc.gnu.org, fortran@gcc.gnu.org Subject: [patch libgfortran] path to libquadmath Message-ID: <20101128204243.GA2551@hiauly1.hia.nrc.ca> Reply-To: John David Anglin MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="TB36FDmn/VVEgNH/" Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2010-11/txt/msg02744.txt.bz2 --TB36FDmn/VVEgNH/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 603 The current relative path to libquadmath can be incorrectly interpreted on systems that hard code library paths. In particular, on 32-bit hppa*-*hpux*, the '..' part of the path is relative to the final executable. As a result, all libgfortran tests fail due to a dynamic loader error. The patch changes the path to an absolute path. Tested on hppa2.0w-hp-hpux11.11 and i686-apple-darwin9 with no observed regressions. OK for trunk? Dave -- J. David Anglin dave.anglin@nrc-cnrc.gc.ca National Research Council of Canada (613) 990-0752 (FAX: 952-6602) --TB36FDmn/VVEgNH/ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="acinclude.m4.d" Content-length: 1117 2010-11-28 John David Anglin * acinclude.m4 (LIBQUADLIB): Use absolute path. * configure: Rebuild. Index: configure =================================================================== --- configure (revision 167224) +++ configure (working copy) @@ -24396,7 +24396,7 @@ LIBQUADSPEC="-lquadmath" fi if test -f ../libquadmath/libquadmath.la; then - LIBQUADLIB=../libquadmath/libquadmath.la + LIBQUADLIB='$(abs_builddir)/../libquadmath/libquadmath.la' LIBQUADLIB_DEP=../libquadmath/libquadmath.la LIBQUADINCLUDE='-I$(srcdir)/../libquadmath' else Index: acinclude.m4 =================================================================== --- acinclude.m4 (revision 167224) +++ acinclude.m4 (working copy) @@ -332,7 +332,7 @@ LIBQUADSPEC="-lquadmath" fi if test -f ../libquadmath/libquadmath.la; then - LIBQUADLIB=../libquadmath/libquadmath.la + LIBQUADLIB='$(abs_builddir)/../libquadmath/libquadmath.la' LIBQUADLIB_DEP=../libquadmath/libquadmath.la LIBQUADINCLUDE='-I$(srcdir)/../libquadmath' else --TB36FDmn/VVEgNH/--