PKGNAME=libxcrypt+32
PKGSEC=libs
PKGDEP="aosc-aaa+32 glibc+32"
PKGDES="Library for one-way hashing of passwords (32-bit x86 runtime)"
BUILDDEP="devel-base+32"
ABHOST=optenv32

# Note:
#
# --disable-failure-tokens
#     Make crypt and crypt_r return NULL on failure,
#     instead of a special "failure token" string that
#     isn't the hash of any passphrase. This matches the
#     behavior of several other crypt implementations, but
#     will break programs that assume these functions
#     never return NULL. crypt_rn and crypt_ra are not
#     affected by this option, and will always return NULL
#     on failure.
AUTOTOOLS_AFTER=(
    '--enable-largefile'
    '--disable-werror'
    '--enable-symvers'
    '--disable-valgrind'
    '--disable-valgrind-memcheck'
    '--disable-valgrind-helgrind'
    '--disable-valgrind-drd'
    '--disable-valgrind-sgcheck'
    '--disable-failure-tokens'
    '--enable-xcrypt-compat-files'
    '--enable-obsolete-api=no'
    '--enable-obsolete-api-enosys=no'
    '--enable-hashes=all'
)
AUTOTOOLS_AFTER__COMPAT=(
    "${AUTOTOOLS_AFTER[@]}"
    '--enable-obsolete-api=glibc'
)

PKGBREAK="glibc+32<=2.34 man-pages<=6.01+posix2017-a"
PKGREP="glibc+32<=2.34 man-pages<=6.01+posix2017-a"
