Skip to content

Commit 230b94d

Browse files
committed
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.
1 parent c1f7b17 commit 230b94d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎templates/qnx/cc_toolchain_config.bzl.template‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,12 +736,12 @@ def _impl(ctx):
736736
dependency_file_feature,
737737
default_link_flags_feature,
738738
archiver_flags_feature,
739-
user_link_flags_feature,
740739
linker_param_file_feature,
741740
library_search_directories_feature,
742741
shared_flag_feature,
743742
output_execpath_flags_feature,
744743
libraries_to_link_feature,
744+
user_link_flags_feature,
745745
coverage_feature,
746746
extra_link_flags_feature,
747747
opt_feature,

0 commit comments

Comments
 (0)