Use the appropiate Makefile variable to ensure the resource file is only built into shared libraries instead.