Skip to content

Commit 1b253fb

Browse files
committed
test: add seccomp build.rs to point it to static libseccom.a
Signed-off-by: Egor Lazarchuk <[email protected]>
1 parent 724338f commit 1b253fb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/seccompiler/build.rs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
fn main() {
5+
println!("cargo::rustc-env=LIBSECCOMP_LINK_TYPE=static");
6+
println!("cargo::rustc-env=LIBSECCOMP_LIB_PATH=/usr/local/lib");
7+
println!("cargo::rustc-link-search=/usr/local/lib");
8+
println!("cargo::rustc-link-lib=seccomp");
9+
}

0 commit comments

Comments
 (0)