makefiles: do not unlessly use --global

Signed-off-by: Jean Privat <jean@pryen.org>