From 230b94dcf0cd330af35345a2e09033f5fb16b776 Mon Sep 17 00:00:00 2001 From: Nikola Radakovic Date: Tue, 25 Aug 2026 19:18:07 +0100 Subject: [PATCH] fix(qnx): reorder user_link_flags after libraries_to_link Fixes undefined reference errors (e.g. __gcov_dump) caused by user linkopts appearing before the objects/libraries that need them on the QNX link command line. Matches the Linux template's ordering. --- templates/qnx/cc_toolchain_config.bzl.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/qnx/cc_toolchain_config.bzl.template b/templates/qnx/cc_toolchain_config.bzl.template index cfd7742..4c8f06a 100644 --- a/templates/qnx/cc_toolchain_config.bzl.template +++ b/templates/qnx/cc_toolchain_config.bzl.template @@ -736,12 +736,12 @@ def _impl(ctx): dependency_file_feature, default_link_flags_feature, archiver_flags_feature, - user_link_flags_feature, linker_param_file_feature, library_search_directories_feature, shared_flag_feature, output_execpath_flags_feature, libraries_to_link_feature, + user_link_flags_feature, coverage_feature, extra_link_flags_feature, opt_feature,