Skip to content

Baselibs doesn't work on AArch64 Linux due to libacl dependency being x86_64 only #78

@4og

Description

@4og

Potential fix:

diff --git a/third_party/acl/BUILD b/third_party/acl/BUILD
index 7fdb429..0d6e743 100644
--- a/third_party/acl/BUILD
+++ b/third_party/acl/BUILD
@@ -1,5 +1,19 @@
+
+
+cc_library(
+    name = "libacl",
+    linkopts = [
+        "-lacl",
+    ],
+    target_compatible_with = ["@platforms//os:linux", "@platforms//cpu:aarch64"],
+    visibility = ["//visibility:public"],
+)
+
 alias(
     name = "acl",
-    actual = "@acl-deb//:acl",
+    actual = select({
+		"@platforms//cpu:aarch64": ":libacl",
+		"//conditions:default": "@acl-deb//:acl",
+		}),
     visibility = ["//visibility:public"], 
 )
\ No newline at end of file

Originally posted by @btirunagaru in eclipse-score/score#2462 (comment)

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions