win32: Fix privlibdir for running on Windows

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/458>
This commit is contained in:
Patrick Gaskin 2021-01-03 04:07:11 -05:00 committed by PulseAudio Marge Bot
parent dd87e9f229
commit 613b3ebc2c

View file

@ -67,6 +67,11 @@ localstatedir = join_paths(prefix, get_option('localstatedir'))
sysconfdir = join_paths(prefix, get_option('sysconfdir'))
privlibdir = join_paths(libdir, 'pulseaudio')
if host_machine.system() == 'windows'
# Windows only supports loading libraries from the same dir as the executable
privlibdir = bindir
endif
alsadatadir = get_option('alsadatadir')
if alsadatadir == ''
alsadatadir = join_paths(datadir, 'pulseaudio', 'alsa-mixer')