PKGNAME=binutils+32
PKGDES="Programs to assemble and manipulate binary and object files (32-bit x86 runtime)"
PKGSEC=devel
PKGDEP="aosc-aaa+32 glibc+32 zlib+32 zstd+32"
BUILDDEP="devel-base+32"

# Flags from the main tree.
NOSTATIC=0
AB_FLAGS_O3=1
RECONF=0

AUTOTOOLS_STRICT=0
AUTOTOOLS_AFTER=(
	"--prefix=/opt/32"
	"--sysconfdir=/opt/32/etc"
	"--with-lib-path=/opt/32/lib"
	"--with-bugurl=https://github.com/AOSC-Dev/aosc-os-abbs"
	"--enable-threads"
	"--enable-shared"
	"--with-zstd"
	"--with-pic"
	"--enable-ld"
	"--enable-plugins"
	"--disable-werror"
	"--enable-lto"
	"--disable-gdb"
	"--disable-gdbserver"
	"--enable-deterministic-archives"
	"--enable-64-bit-bfd"
	"--enable-gold=yes"
	"--with-system-zlib"
	"--with-build-libsubdir=/opt/32/lib"
)

ABHOST=optenv32
