Index: sqlite/tool/buildtclext.tcl ================================================================== --- a/tool/buildtclext.tcl +++ a/tool/buildtclext.tcl @@ -140,12 +140,13 @@ if {[string length $OPTS]>1} { append LDFLAGS $OPTS } - set CMD [subst $cmd] if {$TCLMAJOR>8} { set OUT libtcl9sqlite$VERSION.$SUFFIX } else { set OUT libsqlite$VERSION.$SUFFIX } + set @ $OUT; # workaround for https://sqlite.org/forum/forumpost/6b1af7eb10884373 + set CMD [subst $cmd] } # Show information about prior installs