The modules are installed only if the daemon is enabled and installed. If the daemon is disabled, the modules won't be installed and the path to the modules doesn't exist.
Don't add the modules directory from the rpath if the directory doesn't exist. Signed-off-by: Michael Tretter <[email protected]> --- rules/pulseaudio.make | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rules/pulseaudio.make b/rules/pulseaudio.make index d33b31a7e3f1..afc3c7496595 100644 --- a/rules/pulseaudio.make +++ b/rules/pulseaudio.make @@ -97,7 +97,11 @@ PULSEAUDIO_CONF_OPT := \ -Dx11=disabled \ -Dzshcompletiondir= +ifdef PTXCONF_PULSEAUDIO_DAEMON PULSEAUDIO_LDFLAGS := -Wl,-rpath,/usr/lib/pulseaudio:/usr/lib/pulse-$(PULSEAUDIO_VERSION)/modules +else +PULSEAUDIO_LDFLAGS := -Wl,-rpath,/usr/lib/pulseaudio +endif # ---------------------------------------------------------------------------- # Install -- 2.39.2
