patches/binutils/2.20/180-only-use-new-ld-dtags.patch.disabled
author Arnaud Lacombe <lacombar@gmail.com>
Thu Aug 05 17:59:51 2010 +0200 (2010-08-05)
changeset 2069 366bd2b22675
permissions -rw-r--r--
complibs/mpc: fix MPC 0.8.1 build with MPFR 3.0.0

This is the change introduced by revision 734 of MPC repository.

Author: Paul Zimmermann <Paul.Zimmermann@loria.fr>
Revision log: [acos.c] fixed problem with GMP_RNDA (should be MPFR_RNDA, and code was wrong)

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
     1 Don't generate RPATH if we're going to be generating RUNPATH.
     2 
     3 need to ponder what ramifications this has before enabling it
     4 
     5 --- binutils/bfd/elflink.c
     6 +++ binutils/bfd/elflink.c
     7 @@ -5382,11 +5382,15 @@
     8  
     9  	  indx = _bfd_elf_strtab_add (elf_hash_table (info)->dynstr, rpath,
    10  				      TRUE);
    11 -	  if (indx == (bfd_size_type) -1
    12 -	      || !_bfd_elf_add_dynamic_entry (info, DT_RPATH, indx))
    13 +	  if (indx == (bfd_size_type) -1)
    14  	    return FALSE;
    15  
    16 -	  if  (info->new_dtags)
    17 +	  if (!info->new_dtags)
    18 +	    {
    19 +	      if (!_bfd_elf_add_dynamic_entry (info, DT_RPATH, indx))
    20 +		return FALSE;
    21 +	    }
    22 +	  else
    23  	    {
    24  	      _bfd_elf_strtab_addref (elf_hash_table (info)->dynstr, indx);
    25  	      if (!_bfd_elf_add_dynamic_entry (info, DT_RUNPATH, indx))