summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2011-10-14 10:13:34 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2011-10-14 10:13:34 +0000
commitb220cf7c66942cd361a38f1750d1ee1d22845669 (patch)
treee940fe665eeeeec2eaf058f46b989ce94fb3b3d2
parentb86ddb38f55e5568dbfa5930a9cc681e9a35bf5d (diff)
downloadmpfr-b220cf7c66942cd361a38f1750d1ee1d22845669.tar.gz
[tests/Makefile.am] Added -L$(top_builddir)/src/.libs to AM_LDFLAGS.
[INSTALL] Removed the notes on HP-UX (obsolete after the above change). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7920 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--INSTALL16
-rw-r--r--tests/Makefile.am20
2 files changed, 18 insertions, 18 deletions
diff --git a/INSTALL b/INSTALL
index 411e37645..ca9adea42 100644
--- a/INSTALL
+++ b/INSTALL
@@ -471,22 +471,6 @@ due to the early compiler tests, as gcc will not compile any program if
OBJECT_MODE is 64 and the -maix64 option is not provided.
-Notes on HP-UX
-==============
-
-If you use the --with-gmp-lib=DIR or --with-gmp=DIR configure option and
-an old MPFR version is already installed in DIR or a subdirectory, then
-you need to install MPFR (make install) or remove the old MPFR version
-before running the tests (make check). The reason is that libtool 2.4
-adds the -L../src/.libs or equivalent (where the MPFR library that has
-just been compiled can be found) after $(LDFLAGS), which contains the
-"-L DIR" added at configure time. Alternatively, you can try to predefine
-LDFLAGS with something of the form LDFLAGS="-L$(top_builddir)/src/.libs"
-(the MPFR configure script is written so that "-L DIR" will appear after
-the predefined options, as required here). Or avoid the --with-gmp*
-options and use environment variables as said above.
-
-
MPFR for use with 32-bit Windows Applications (win32)
=====================================================
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 96892c1bd..b85bbc7a1 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -65,8 +65,24 @@ $(top_builddir)/src/libmpfr.la:
TESTS = $(check_PROGRAMS)
TESTS_ENVIRONMENT = MPFR_QUIET=1 $(VALGRIND)
-# Option to prevent libtool from generating wrapper scripts for the tests.
+# The -no-install option prevents libtool from generating wrapper scripts
+# for the tests.
# This is useful to easily run the test scripts under valgrind or gdb.
# See discussion http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28033
# http://article.gmane.org/gmane.comp.lib.gnulib.bugs/28140 in particular.
-AM_LDFLAGS = -no-install
+#
+# The -L$(top_builddir)/src/.libs option is necessary for some platforms,
+# such as HP-UX, when --with-gmp or --with-gmp-lib is used and an old MPFR
+# library is already installed in the corresponding lib directory: its
+# purpose is to make sure that the local .libs comes first in the library
+# search path (otherwise the tests are linked against the old MPFR library
+# by the LINK command -- see the generated Makefile). See:
+# http://websympa.loria.fr/wwsympa/arc/mpfr/2011-10/msg00042.html
+# http://websympa.loria.fr/wwsympa/arc/mpfr/2011-10/msg00043.html
+# http://websympa.loria.fr/wwsympa/arc/mpfr/2011-10/msg00044.html
+# http://websympa.loria.fr/wwsympa/arc/mpfr/2011-10/msg00066.html
+# http://websympa.loria.fr/wwsympa/arc/mpfr/2011-10/msg00065.html
+# and
+# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9728
+#
+AM_LDFLAGS = -no-install -L$(top_builddir)/src/.libs