Skip to content

Commit

Permalink
test: add seccomp build.rs to point it to static libseccom.a
Browse files Browse the repository at this point in the history
Signed-off-by: Egor Lazarchuk <[email protected]>
  • Loading branch information
ShadowCurse committed Nov 29, 2024
1 parent 724338f commit 1b253fb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/seccompiler/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

fn main() {
println!("cargo::rustc-env=LIBSECCOMP_LINK_TYPE=static");
println!("cargo::rustc-env=LIBSECCOMP_LIB_PATH=/usr/local/lib");
println!("cargo::rustc-link-search=/usr/local/lib");
println!("cargo::rustc-link-lib=seccomp");
}

0 comments on commit 1b253fb

Please sign in to comment.