[MacPorts] #72537: clang++ don't use right -lc++

MacPorts noreply at macports.org
Thu May 29 18:21:28 UTC 2025


#72537: clang++ don't use right -lc++
--------------------------------+--------------------
  Reporter:  Serge3leo          |      Owner:  (none)
      Type:  defect             |     Status:  closed
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:
Resolution:  wontfix            |   Keywords:
      Port:  clang-20 clang-19  |
--------------------------------+--------------------
Changes (by cjones051073):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 This behaviour is in fact intentional. All the MacPorts clang compilers
 link against the system libc++ to ensure binary compatibility between all
 MacPorts builds, which use an array of different macPorts and Xcode
 provided compilers. This means on any given OS you are limited to what
 features the OS libc++ provides and form sure macOS 14 does not support
 c++26...

 The version of libc++ as built by the clang/llvm ports is kept (in a
 hidden sub directory to avoid accidental linkage) to allow cases such as
 yours to use it if desired, but this is left to the user to configure as
 you have.

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


More information about the macports-tickets mailing list