[mpich-commits] [mpich] MPICH primary repository branch, master, updated. v3.1-296-g99c231b

Service Account noreply at mpich.org
Tue Jun 3 10:16:07 CDT 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "MPICH primary repository".

The branch, master has been updated
       via  99c231bbacd9305e8060c72c0f7116e94fa2e081 (commit)
      from  050116938f832c9bf135d0df93d1f7232d7f4a83 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.mpich.org/mpich.git/commitdiff/99c231bbacd9305e8060c72c0f7116e94fa2e081

commit 99c231bbacd9305e8060c72c0f7116e94fa2e081
Author: Ken Raffenetti <raffenet at mcs.anl.gov>
Date:   Tue Jun 3 08:19:36 2014 -0500

    use --enable-new-dtags in compiler scripts
    
    The use of LD_LIBRARY_PATH is not sufficient to override RPATH tags
    encoded in an ELF binary. This hinders users looking to swap ABI
    compatible versions of MPI at runtime. To enable this use, the compiler
    scripts should use --enable-new-dtags, which sets RUNPATH instead of
    RPATH in the binary, and will be checked after LD_LIBRARY_PATH. Thanks
    to Intel for suggesting this change.
    
    Signed-off-by: Pavan Balaji <balaji at anl.gov>

diff --git a/confdb/config.rpath b/confdb/config.rpath
index 82db9a2..039c11e 100755
--- a/confdb/config.rpath
+++ b/confdb/config.rpath
@@ -220,7 +220,16 @@ if test "$with_gnu_ld" = yes; then
       ;;
     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
-        :
+        # use --enable-new-dtags for RUNPATH support, which is required for
+        # switching between ABI compatible libraries at runtime.
+        if test "$GCC" = yes; then
+          hardcode_libdir_flag_spec="${hardcode_libdir_flag_spec} ${wl}--enable-new-dtags"
+        else
+          case $cc_basename in ifort*)
+            hardcode_libdir_flag_spec="${hardcode_libdir_flag_spec} ${wl}--enable-new-dtags"
+            ;;
+          esac
+        fi
       else
         ld_shlibs=no
       fi

-----------------------------------------------------------------------

Summary of changes:
 confdb/config.rpath |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
MPICH primary repository


More information about the commits mailing list