diff options
author | Andre Przywara <[email protected]> | 2021-03-19 16:53:25 +0000 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2021-03-23 16:36:30 +0000 |
commit | e5decefd884da1c2c6ea18fca17b80b189afcc43 (patch) | |
tree | 71d52033de68da513a85a34f7309638815aea92a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 4a423645bc2690376a7a94b4bb7b2f74bc6206ff (diff) |
kselftest/arm64: mte: Fix pthread linking
The GCC manual suggests to use -pthread, when linking with the PThread
library, also to add this switch to both the compilation and linking
stages.
Do as the manual says, to fix compilation with Ubuntu's 20.04 toolchain,
which was getting -lpthread too early on the command line:
------------
/usr/bin/ld: /tmp/cc5zbo2A.o: in function `execute_test':
tools/testing/selftests/arm64/mte/check_gcr_el1_cswitch.c:86:
undefined reference to `pthread_create'
/usr/bin/ld: tools/testing/selftests/arm64/mte/check_gcr_el1_cswitch.c:90:
undefined reference to `pthread_join'
------------
Signed-off-by: Andre Przywara <[email protected]>
Reviewed-by: Mark Brown <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions