public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch libgfortran] path to libquadmath
@ 2010-11-29  0:13 John David Anglin
  2010-11-29  0:58 ` Ralf Wildenhues
  0 siblings, 1 reply; 7+ messages in thread
From: John David Anglin @ 2010-11-29  0:13 UTC (permalink / raw)
  To: gcc-patches, fortran

[-- Attachment #1: Type: text/plain, Size: 603 bytes --]

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)

[-- Attachment #2: acinclude.m4.d --]
[-- Type: text/plain, Size: 1117 bytes --]

2010-11-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

	* 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

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

end of thread, other threads:[~2010-12-19 18:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-29  0:13 [patch libgfortran] path to libquadmath John David Anglin
2010-11-29  0:58 ` Ralf Wildenhues
2010-11-29  1:50   ` John David Anglin
2010-12-06  0:57   ` John David Anglin
2010-12-10 17:03   ` John David Anglin
2010-12-19 16:21     ` ping: [PATCH libtool] hardcoded path to dependent shared libraries on 32-bit hpux (libquadmath) John David Anglin
2010-12-19 19:35       ` Ralf Wildenhues

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).