flags in case of --with-tcl-*

This commit is contained in:
Ivan Pozdeev 2025-10-09 10:43:40 +03:00
parent e5694449d2
commit 0e34a588ca

View File

@ -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}"