From 6ef80e34e10be1bab4611895dba665d0e2eb370c Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Wed, 4 Sep 2024 13:22:40 +0200 Subject: [PATCH] Use `-Xlinker` for `-install_name` This supports `,` in `runtime_solib_name`. --- crosstool/cc_toolchain_config.bzl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crosstool/cc_toolchain_config.bzl b/crosstool/cc_toolchain_config.bzl index ce3e497..85d7abd 100644 --- a/crosstool/cc_toolchain_config.bzl +++ b/crosstool/cc_toolchain_config.bzl @@ -2439,7 +2439,10 @@ please file an issue at https://github.com/bazelbuild/apple_support/issues/new flag_groups = [ flag_group( flags = [ - "-Wl,-install_name,@rpath/%{runtime_solib_name}", + "-Xlinker", + "-install_name", + "-Xlinker", + "@rpath/%{runtime_solib_name}", ], expand_if_available = "runtime_solib_name", ),