[MacPorts] #62426: libc++: using a newer libc++ to build software on older macos systems
MacPorts
noreply at macports.org
Fri Mar 12 19:49:59 UTC 2021
#62426: libc++: using a newer libc++ to build software on older macos systems
--------------------------+----------------------
Reporter: kencu | Owner: kencu
Type: enhancement | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: libcxx |
--------------------------+----------------------
Comment (by kencu):
and this:
{{{
clang++-mp-11 -std=c++17 -D_LIBCPP_DISABLE_AVAILABILITY
-L/opt/local/libexec/llvm-11/lib/
-Wl,-rpath,/opt/local/libexec/llvm-11/lib/ fstest.cpp
}}}
also works on 10.6.8, I'm happy to say.
{{{
$ otool -L a.out
a.out:
@rpath/libc++.1.dylib (compatibility version 1.0.0, current
version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 125.2.11)
}}}
{{{
$ ./a.out
Displaying path info for: "/Users/kencu/Desktop"
path part: 0 = "/"
path part: 1 = "Users"
path part: 2 = "kencu"
path part: 3 = "Desktop"
exists() = 1
...
}}}
--
Ticket URL: <https://trac.macports.org/ticket/62426#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list