We could put the Samba replacement into a .a file and reference that last in the linking options. This way lib/snprintf.o would only be linked in if nobody else defines that symbol. At least this is how I understood the linker.
This is not too easy I think, I've never really messed with the Makefiles.
Volker