summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorPatrick Gaskin <patrick@pgaskin.net>2021-01-03 04:07:11 -0500
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>2021-01-13 03:42:24 +0000
commit613b3ebc2ccc3a39b49d033850e39d760d22b5aa (patch)
tree09872f636d178990a3f64916c4067df7f27780dc /meson.build
parentdd87e9f2291a5a4706058a9e84846b053d1857a5 (diff)
win32: Fix privlibdir for running on Windows
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/458>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build5
1 files changed, 5 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index bff13cc16..869178437 100644
--- a/meson.build
+++ b/meson.build
@@ -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')