When building a snap package, the wrapper script automatically adds $SNAP/usr/lib to the LD_LIBRARY_PATH.
When building my package on docker, some libraries (in this case liblapack and libblas) are installed in subdirectories: $SNAP/usr/lib/lapackand $SNAP/usr/lib/libblas respectively.
Although all the dependencies are defined under stage-packages in my snapcraft.yaml, the paths above are not included in the wrapper script.
How can I force snapcraft to add the path to all the libraries to the wrapper script automatically?