diff --git a/srcpkgs/gdb/template b/srcpkgs/gdb/template index e63224696bd..02e0e66350d 100644 --- a/srcpkgs/gdb/template +++ b/srcpkgs/gdb/template @@ -11,7 +11,7 @@ configure_args="--disable-werror --disable-nls --with-system-readline $(vopt_with debuginfod)" hostmakedepends="texinfo perl pkg-config $(vopt_if python python3-devel)" makedepends="ncurses-devel zlib-devel readline-devel expat-devel - $(vopt_if python 'python3-devel gettext-libs') + $(vopt_if python python3-devel) $(vopt_if debuginfod elfutils-devel)" short_desc="GNU Debugger" maintainer="Anthony Iliopoulos " @@ -22,6 +22,10 @@ checksum=f82f1eceeec14a3afa2de8d9b0d3c91d5a3820e23e0a01bbb70ef9f0276b62c0 python_version=3 patch_args="-Np1" +if [ "$build_option_python" ] && [ "$XBPS_TARGET_LIBC" = musl ]; then + makedepends+=" gettext-libs" +fi + if [ "${CROSS_BUILD}" ]; then # Make python3.x detection work in cross builds CFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}"