#!/bin/sh
set -e
. config.sh

mkdir -p "$sysprefix"/lib
ar rc "$sysprefix"/lib/libatomic.a

/mnt/shared/Shared/vax/gcc-14.3.0/configure \
	--prefix="$buildprefix" \
	--target=vax-dec-linux-musl \
	--with-sysroot="$sysprefix" \
	--with-native-system-header-dir=/include \
	--disable-nls --disable-multilib \
	--disable-libquadmath --disable-libmudflap \
	--disable-libssp --disable-libitm --disable-libvtv --disable-libsanitizer --disable-libstdcxx-pch \
	--enable-shared --enable-threads=posix --enable-linker-build-id \
	--enable-languages=c \
	--with-gnu-ld --with-gnu-as \
	--enable-clocale=generic --disable-gnu-unique-object --disable-symvers libat_cv_have_ifunc=no
