diff --git a/srcpkgs/liblouis/template b/srcpkgs/liblouis/template index 4278b311f8..5a408f49d1 100644 --- a/srcpkgs/liblouis/template +++ b/srcpkgs/liblouis/template @@ -16,6 +16,11 @@ distfiles="https://github.com/$pkgname/$pkgname/releases/download/v$version/$pkg checksum=c07d8232959bbe4f4a1bdc597a6aa228753526b47f2064bd119754da6cfd6f85 pycompile_module='louis' +case "$XBPS_TARGET_MACHINE" in + *-musl) ;; + *) configure_args+=" gl_cv_func_getopt_gnu=yes";; +esac + # See my commentary in patches/crosspython.patch # for justification of pre_build: pre_build() {