From 1b253fbad8bea6725f487724d664952c4f326cc6 Mon Sep 17 00:00:00 2001 From: Egor Lazarchuk Date: Thu, 28 Nov 2024 14:33:56 +0000 Subject: [PATCH] test: add seccomp build.rs to point it to static libseccom.a Signed-off-by: Egor Lazarchuk --- src/seccompiler/build.rs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/seccompiler/build.rs diff --git a/src/seccompiler/build.rs b/src/seccompiler/build.rs new file mode 100644 index 00000000000..b227900dda4 --- /dev/null +++ b/src/seccompiler/build.rs @@ -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"); +}