Log Message: Fix buildlink3.mk file to be python-version-agnostic. Closes PR 29246 by Cesar Catrian C.