[MacPorts] #51754: Clang 3.9 can't link a C++ program

MacPorts noreply at macports.org
Mon Jul 4 08:28:44 PDT 2016


#51754: Clang 3.9 can't link a C++ program
-------------------------+--------------------------------
  Reporter:  noloader@…  |      Owner:  macports-tickets@…
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.3.4
Resolution:              |   Keywords:  "clang-3.9" "link"
      Port:              |
-------------------------+--------------------------------

Comment (by kenneth.f.cunningham@…):

 This issue seems similar to the one I reported last month
 <https://trac.macports.org/ticket/51542> and so you might try the solution
 I found:

 {{{
 sudo install_name_tool -add_rpath @loader_path/
 /opt/local/libexec/llvm-3.9/bin/../lib/libLTO.dylib
 }}}

 Whether this was needed seemed to depend on the exact version of MacOSX
 used; I needed it for Snow Leopard, but not for El Cap. I didn't try the
 OS versions between those two. There is more info in that previous bug
 report that you might find helpful.

-- 
Ticket URL: <https://trac.macports.org/ticket/51754#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list