Currently there doesn't seem to be a way to pass shared library-specific flags via a meson build option.
This patch allows the existing ldflags_sl to be set via a build option.
Patch created against the 17.4 release.