mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
clang-[16-18]: Move libc++*.* libraries to libc++ sub-dir
This avoids accidental linkage against these instead ofm the system versions. See https://trac.macports.org/ticket/68640
This commit is contained in:
+11
-1
@@ -27,7 +27,7 @@ version ${llvm_version}.0.6
|
||||
name llvm-${llvm_version}
|
||||
revision 1
|
||||
subport mlir-${llvm_version} { revision [ expr ${revision} + 0 ] }
|
||||
subport clang-${llvm_version} { revision [ expr ${revision} + 2 ] }
|
||||
subport clang-${llvm_version} { revision [ expr ${revision} + 3 ] }
|
||||
subport lldb-${llvm_version} { revision [ expr ${revision} + 1 ] }
|
||||
subport flang-${llvm_version} { revision [ expr ${revision} + 0 ] }
|
||||
|
||||
@@ -478,6 +478,16 @@ post-destroot {
|
||||
macos-setup-codesign.sh \
|
||||
${lldb_scripts_destdir}
|
||||
}
|
||||
|
||||
if {${subport} eq "clang-${llvm_version}"} {
|
||||
# move libc++ libraries out of default location to prevent accidental linkage
|
||||
set libcxx_dir ${destroot}${sub_prefix}/lib/libc++
|
||||
xinstall -d ${libcxx_dir}
|
||||
foreach f [glob -nocomplain ${destroot}${sub_prefix}/lib/libc++*.*] {
|
||||
ui_debug "Moving ${f} to ${libcxx_dir}"
|
||||
move ${f} ${libcxx_dir}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if {${subport} eq "clang-${llvm_version}"} {
|
||||
|
||||
@@ -496,6 +496,16 @@ post-destroot {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if {${subport} eq "clang-${llvm_version}"} {
|
||||
# move libc++ libraries out of default location to prevent accidental linkage
|
||||
set libcxx_dir ${destroot}${sub_prefix}/lib/libc++
|
||||
xinstall -d ${libcxx_dir}
|
||||
foreach f [glob -nocomplain ${destroot}${sub_prefix}/lib/libc++*.*] {
|
||||
ui_debug "Moving ${f} to ${libcxx_dir}"
|
||||
move ${f} ${libcxx_dir}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if {${subport} eq "clang-${llvm_version}"} {
|
||||
|
||||
@@ -447,6 +447,16 @@ post-destroot {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if {${subport} eq "clang-${llvm_version}"} {
|
||||
# move libc++ libraries out of default location to prevent accidental linkage
|
||||
set libcxx_dir ${destroot}${sub_prefix}/lib/libc++
|
||||
xinstall -d ${libcxx_dir}
|
||||
foreach f [glob -nocomplain ${destroot}${sub_prefix}/lib/libc++*.*] {
|
||||
ui_debug "Moving ${f} to ${libcxx_dir}"
|
||||
move ${f} ${libcxx_dir}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if {${subport} eq "clang-${llvm_version}"} {
|
||||
|
||||
Reference in New Issue
Block a user