Skip to content

Commit f982955

Browse files
committed
(Linux) samples should link libX11.so provided by system-sdk (2)
1 parent 72ef245 commit f982955

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

samples/audio_experiments_wgpu/build.zig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ pub fn build(b: *std.Build, options: anytype) *std.Build.Step.Compile {
6161
exe.addLibraryPath(system_sdk.path("macos12/usr/lib"));
6262
exe.addSystemFrameworkPath(system_sdk.path("macos12/System/Library/Frameworks"));
6363
}
64+
} else if (options.target.result.os.tag == .linux) {
65+
if (b.lazyDependency("system_sdk", .{})) |system_sdk| {
66+
exe.addLibraryPath(system_sdk.path("linux/lib/x86_64-linux-gnu"));
67+
}
6468
}
6569

6670
return exe;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy