Can you change the output to `$(TMPDIR)/libdylib.so`? This currently puts the output in a source directory.

You could pass the path as an argument to the executable as well (so it can be guessed)