diff --git a/srcpkgs/apr/template b/srcpkgs/apr/template index de8ca7c0c8f..38b6d1e4927 100644 --- a/srcpkgs/apr/template +++ b/srcpkgs/apr/template @@ -24,6 +24,12 @@ if [ "$CROSS_BUILD" ]; then configure_args+=" ac_cv_func_sem_open=sem_open" fi +# The apr package doesn't use crypt_r, however apr-util does, +# and apr-util uses the apr.h generated by apr's ./configure. +if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then + makedepends+=" libxcrypt-devel" +fi + pre_build() { if [ "$CROSS_BUILD" ]; then vsed -i Makefile \