[MacPorts] #60165: meson @0.53.2 produces on PPC Mac OS X 10.4.11, Tiger, faulty files with illegal loader switch '-Wl, -rpath, @loader_path/'

MacPorts noreply at macports.org
Thu Mar 26 23:36:02 UTC 2020


#60165: meson @0.53.2 produces on PPC Mac OS X 10.4.11, Tiger, faulty files with
illegal loader switch '-Wl,-rpath, at loader_path/'
------------------------+-----------------------
  Reporter:  ballapete  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.6.2
Resolution:             |   Keywords:  tiger ppc
      Port:  meson      |
------------------------+-----------------------

Comment (by kencu):

 This patch improves the situation:
 {{{
 --- ./mesonbuild/linkers.py.orig        2020-03-26 16:17:42.000000000
 -0700
 +++ ./mesonbuild/linkers.py     2020-03-26 16:21:54.000000000 -0700
 @@ -617,7 +617,7 @@
                          is_shared_module: bool) -> T.List[str]:
          if is_shared_module:
              return []
 -        install_name = ['@rpath/', prefix, shlib_name]
 +        install_name = ['@loader_path/', prefix, shlib_name]
          if soversion is not None:
              install_name.append('.' + soversion)
          install_name.append('.dylib')
 @@ -645,7 +645,7 @@
          for rp in all_paths:
              args.extend(self._apply_prefix('-rpath,' + rp))

 -        return args
 +        return []


  class GnuDynamicLinker(GnuLikeDynamicLinkerMixin,
 PosixDynamicLinkerMixin, DynamicLinker):
 }}}

 see full discussion here:

 <https://github.com/kencu/TigerPorts/commit/753b2fefe6f60bb8c85682edf6178349e1527084>

-- 
Ticket URL: <https://trac.macports.org/ticket/60165#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list