[MacPorts] #62426: libc++: using a newer libc++ to build software on older macos systems
MacPorts
noreply at macports.org
Tue Sep 27 13:00:50 UTC 2022
#62426: libc++: using a newer libc++ to build software on older macos systems
-------------------------------------+--------------------
Reporter: kencu | Owner: kencu
Type: enhancement | Status: closed
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: fixed | Keywords:
Port: libcxx macports-libcxx |
-------------------------------------+--------------------
Comment (by RJVB):
Now, using clang-12 with the libraries from port:clang-9.0:
{{{
> build-libcxx-test.sh clang++-mp-12
-I/opt/local/libexec/llvm-9.0/include/
-Wl,-rpath,/opt/local/libexec/llvm-9.0/lib
-L/opt/local/libexec/llvm-9.0/lib -Wl,-rpath,/opt/local/lib
-L/opt/local/lib /opt/local/lib/libc++.dylib && libcxx-test
./nonexistant.h libcxx-test.cpp && ldd libcxx-test
clang: warning: -Wl,-rpath,/opt/local/libexec/llvm-9.0/lib: 'linker' input
unused [-Wunused-command-line-argument]
clang: warning: -Wl,-rpath,/opt/local/lib: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: /opt/local/lib/libc++.dylib: 'linker' input unused
[-Wunused-command-line-argument]
clang: warning: argument unused during compilation:
'-L/opt/local/libexec/llvm-9.0/lib' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-L/opt/local/lib'
[-Wunused-command-line-argument]
libcxx-test : EC.message is Undefined error: 0
EC == no_such_file_or_directory is 0
./nonexistant.h : EC.message is No such file or directory
EC == no_such_file_or_directory is 1
libcxx-test.cpp : EC.message is Undefined error: 0
EC == no_such_file_or_directory is 0
libcxx-test:
/opt/local/libexec/llvm-9.0/lib/libLLVM.dylib (compatibility
version 1.0.0, current version 9.0.1)
/opt/local/lib/libc++.1.dylib (compatibility version 1.0.0,
current version 9.0.1)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1197.1.1)
}}}
Note that there is also the fact that the llvm-9 builds do not use @rpath,
which may make a big difference here.
--
Ticket URL: <https://trac.macports.org/ticket/62426#comment:69>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list