Question: correct ldflags for an external module?
Hello,
I'm working on packaging an external module for pipewire: the xrdp module. I'm packaging it for Debian.
One question that popped up is: what are the correct ldflags to use in this case? So far the module is built with -module and -avoid-version, but I have the impression that this is not for a good reason, instead it's due to a old pulseaudio tutorial that suggests to use those flags.
I have the impression that it would be more correct to just use those ldflags instead: $(pkgconf --libs libpipewire-0.3 libspa-0.2) -avoid-version
.
I prefer to ask here, as I'd like to get this point of detail right for the Debian package, however I know very little about shared libraries and modules in general. I wonder if the fact that it's an external module warrants some special ldflags. Or maybe it doesn't matter at all?
Thanks in advance!