Diff native-cctools-4 with a native-cctools-5
/usr/portage/sys-devel/native-cctools/native-cctools-5.ebuild 2023-10-09 14:52:35.492368501 +0300 | ||
---|---|---|
70 | 70 | |
71 | 71 |
# post fix for Darwin's ranlib (doesn't like it when its called other than |
72 | 72 |
# that, as libtool and ranlib are one tool) |
73 |
# on macOS Big Sur, all tools except ld require to be called plainly as well |
|
73 | 74 |
if [[ ${CHOST} == *-darwin* ]] ; then |
74 |
rm -f ranlib |
|
75 |
cat <<-EOF > ranlib |
|
76 |
#!/usr/bin/env bash |
|
77 |
exec ${nativepath}/ranlib "\$@" |
|
78 |
EOF |
|
79 |
chmod 755 ranlib |
|
75 |
[[ ${CHOST##*-darwin} -lt 20 ]] && what="ranlib" |
|
76 |
for b in ${what} ; do |
|
77 |
[[ ${what} == ld ]] && continue |
|
78 |
rm -f ${b} |
|
79 |
cat <<-EOF > ${b} |
|
80 |
#!/usr/bin/env bash |
|
81 |
exec ${nativepath}/${b} "\$@" |
|
82 |
EOF |
|
83 |
chmod 755 ${b} |
|
84 |
done |
|
80 | 85 |
fi |
81 | 86 | |
82 | 87 |
exeinto ${BINPATH} |