Skip to content

Commit 1d99b9a

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

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/seccompiler/build.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
10+
// println!("cargo::rustc-env=LIBSECCOMP_LIB_PATH=/firecracker/src/seccompiler/lib/docker_musl"
11+
// ); println!("cargo::rustc-link-search=/firecracker/src/seccompiler/lib/docker_musl");
12+
}

0 commit comments

Comments
 (0)