Skip to content

Commit 98942fd

Browse files
committed
fix build in netbsd
1 parent 758d7a4 commit 98942fd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docker/netbsd.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ main() {
3838
sed -i -e 's/ftp:/https:/g' ./contrib/download_prerequisites
3939
./contrib/download_prerequisites
4040
local patches=(
41-
https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/lang/gcc9/patches/patch-libstdc++-v3_config_os_bsd_netbsd_ctype__base.h
4241
https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/lang/gcc9/patches/patch-libstdc++-v3_config_os_bsd_netbsd_ctype__configure__char.cc
42+
https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/lang/gcc9/patches/patch-libstdc++-v3_config_os_bsd_netbsd_ctype__base.h
43+
https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/lang/gcc8/patches/patch-libgfortran_io_io.h
4344
)
4445

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

9495
pushd gcc-build
95-
../gcc/configure \
96+
# remove the environment variables after bumping the gcc version to 11.
97+
target_configargs="ac_cv_func_newlocale=no ac_cv_func_freelocale=no ac_cv_func_uselocale=no" ../gcc/configure \
9698
--disable-libada \
9799
--disable-libcilkrt \
98100
--disable-libcilkrts \

0 commit comments

Comments
 (0)