Closed MIvanchev closed 1 year ago
External plugins must be compiled with -DPIC, so this path is not used at all in reality. Or are you trying to build a static library with external plugins?
Even better, I'm building a static library with static plugins for my project static-wine32. It works nicely! Here are the patches I use: alsa-lib and alsa-plugins. I understand this is not in the scope of your project though.
The macro:
should actually be
This is because for instance this code
SND_CTL_PLUGIN_SYMBOL(pulse);
expands toand this expands to
but the C preprocessor doesn't expand stringified tokens so the value of
dlsym_name
is actually"SND_CTL_PLUGIN_ENTRY(pulse)"
.