Skip to content

Commit

Permalink
fix build in netbsd
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirreke committed Mar 21, 2024
1 parent 758d7a4 commit 98942fd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docker/netbsd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ main() {
sed -i -e 's/ftp:/https:/g' ./contrib/download_prerequisites
./contrib/download_prerequisites
local patches=(
https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/lang/gcc9/patches/patch-libstdc++-v3_config_os_bsd_netbsd_ctype__base.h
https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/lang/gcc9/patches/patch-libstdc++-v3_config_os_bsd_netbsd_ctype__configure__char.cc
https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/lang/gcc9/patches/patch-libstdc++-v3_config_os_bsd_netbsd_ctype__base.h
https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/lang/gcc8/patches/patch-libgfortran_io_io.h
)

local patch
Expand Down Expand Up @@ -92,7 +93,8 @@ main() {
ln -s libutil.so.7.24 "${destdir}/lib/libutil.so.7"

pushd gcc-build
../gcc/configure \
# remove the environment variables after bumping the gcc version to 11.
target_configargs="ac_cv_func_newlocale=no ac_cv_func_freelocale=no ac_cv_func_uselocale=no" ../gcc/configure \
--disable-libada \
--disable-libcilkrt \
--disable-libcilkrts \
Expand Down

0 comments on commit 98942fd

Please sign in to comment.