|
5 | 5 |
|
6 | 6 | arch=$1 |
7 | 7 | binutils_version=2.25.1 |
8 | | -freebsd_version=10.3 |
9 | | -triple=$arch-unknown-freebsd10 |
| 8 | +freebsd_version=11.4 |
| 9 | +triple=$arch-unknown-freebsd11 |
10 | 10 | sysroot=/usr/local/$triple |
11 | 11 |
|
12 | 12 | hide_output() { |
@@ -58,31 +58,17 @@ for lib in c++ c_nonshared compiler_rt execinfo gcc pthread rt ssp_nonshared; do |
58 | 58 | done |
59 | 59 |
|
60 | 60 | # Originally downloaded from: |
61 | | -# https://download.freebsd.org/ftp/releases/${freebsd_arch}/${freebsd_version}-RELEASE/base.txz |
62 | | -URL=https://ci-mirrors.rust-lang.org/rustc/2019-04-04-freebsd-${freebsd_arch}-${freebsd_version}-RELEASE-base.txz |
| 61 | +# URL=https://download.freebsd.org/ftp/releases/${freebsd_arch}/${freebsd_version}-RELEASE/base.txz |
| 62 | +URL=https://ci-mirrors.rust-lang.org/rustc/2020-08-09-freebsd-${freebsd_arch}-${freebsd_version}-RELEASE-base.txz |
63 | 63 | curl "$URL" | tar xJf - -C "$sysroot" --wildcards "${files_to_extract[@]}" |
64 | 64 |
|
65 | | -# Fix up absolute symlinks from the system image. This can be removed |
66 | | -# for FreeBSD 11. (If there's an easy way to make them relative |
67 | | -# symlinks instead, feel free to change this.) |
68 | | -set +x |
69 | | -find "$sysroot" -type l | while read symlink_path; do |
70 | | - symlink_target=$(readlink "$symlink_path") |
71 | | - case $symlink_target in |
72 | | - (/*) |
73 | | - echo "Fixing symlink ${symlink_path} -> ${sysroot}${symlink_target}" >&2 |
74 | | - ln -nfs "${sysroot}${symlink_target}" "${symlink_path}" ;; |
75 | | - esac |
76 | | -done |
77 | | -set -x |
78 | | - |
79 | 65 | # Clang can do cross-builds out of the box, if we give it the right |
80 | 66 | # flags. (The local binutils seem to work, but they set the ELF |
81 | 67 | # header "OS/ABI" (EI_OSABI) field to SysV rather than FreeBSD, so |
82 | 68 | # there might be other problems.) |
83 | 69 | # |
84 | 70 | # The --target option is last because the cross-build of LLVM uses |
85 | | -# --target without an OS version ("-freebsd" vs. "-freebsd10"). This |
| 71 | +# --target without an OS version ("-freebsd" vs. "-freebsd11"). This |
86 | 72 | # makes Clang default to libstdc++ (which no longer exists), and also |
87 | 73 | # controls other features, like GNU-style symbol table hashing and |
88 | 74 | # anything predicated on the version number in the __FreeBSD__ |
|
0 commit comments