[MacPorts] #72023: swi-prolog @9.2.9: Patch idea for macOS 10.11.6

MacPorts noreply at macports.org
Sat Feb 8 12:42:44 UTC 2025


#72023: swi-prolog @9.2.9: Patch idea for macOS 10.11.6
--------------------------+---------------------------
  Reporter:  kogule       |      Owner:  JanWielemaker
      Type:  enhancement  |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.10.5
Resolution:               |   Keywords:
      Port:  swi-prolog   |
--------------------------+---------------------------

Comment (by kogule):

 > I'm not a C++ person.

 Me neither ;)

 This libc++ version problem is common between C++ project porting and I
 met them more than a few times.
 That's why even I, a C++ novice, know how to deal with it.


 > CMakeFile sets the standard to 17. Why is this failing than?

 Because C++ compiler deals separately with language spec and libraries.
 Directive `-std=c++17` let its language spec compliant to c++17 but it's
 nothing with the library because there is no way to detect the system's
 standard conformation.
 Controlling the library version leaves developer's hands.

 The patches let the compiler stop linking the system's libc++
 (`-nostdlib`) and use clang-16's one (`-lc -lc++
 -L/opt/local/libexec/llvm-16/lib/libc++
 -Wl,-rpath,/opt/local/libexec/llvm-16/lib/libc++`).

 This is the C++ way as far as I know.

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


More information about the macports-tickets mailing list