mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
vdso/BUILD: add bazel building support for Arm64
Signed-off-by: Bin Lu <bin.lu@arm.com> mpratt@google.com: matched against just x86_64, since that's all we care about. Change-Id: I1320ef31cef6517bf6121a933cc105f2ac548ec8 PiperOrigin-RevId: 238294240
This commit is contained in:
+9
-1
@@ -5,6 +5,11 @@
|
||||
|
||||
package(licenses = ["notice"])
|
||||
|
||||
config_setting(
|
||||
name = "x86_64",
|
||||
constraint_values = ["@bazel_tools//platforms:x86_64"],
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "vdso",
|
||||
srcs = [
|
||||
@@ -30,7 +35,10 @@ genrule(
|
||||
# VDSO has no hooks to handle failures.
|
||||
"-fno-stack-protector " +
|
||||
"-fuse-ld=gold " +
|
||||
"-m64 " +
|
||||
select({
|
||||
":x86_64": "-m64 ",
|
||||
"//conditions:default": "",
|
||||
}) +
|
||||
"-shared " +
|
||||
"-nostdlib " +
|
||||
"-Wl,-soname=linux-vdso.so.1 " +
|
||||
|
||||
Reference in New Issue
Block a user