From 0e34a588cadf473f0feaef2cc5384dc99f16c379 Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Thu, 9 Oct 2025 10:43:40 +0300 Subject: [PATCH] flags in case of --with-tcl-* --- plugins/python-build/bin/python-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 3d43081d..e6377b17 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -1910,7 +1910,7 @@ use_homebrew_tcltk() { else package_option python configure --with-tcltk-includes="$tcltk_includes" package_option python configure --with-tcltk-libs="$tcltk_libs" - export CFLAGS="${tcltk_cflags}${CFLAGS:+ $CFLAGS}" + [[ -n $tcltk_cflags ]] && export CFLAGS="${tcltk_cflags}${CFLAGS:+ $CFLAGS}" fi #set in either case as a failsafe export PKG_CONFIG_PATH="${tcltk_libdir}/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}"