[PATCH v2 2/4] gmon: Disable tst-profile-static with clang
Adhemerval Zanella
adhemerval.zanella@linaro.org
Fri Jan 10 18:12:12 GMT 2025
clang does not support -profile:
clang: error: unknown argument '-profile'; did you mean '-fprofile'?
---
gmon/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gmon/Makefile b/gmon/Makefile
index 6e39366a0c..26051ed2fb 100644
--- a/gmon/Makefile
+++ b/gmon/Makefile
@@ -42,7 +42,8 @@ tests = \
tst-mcount-overflow \
tst-sprofil \
# tests
-ifeq ($(build-profile),yes)
+# clang does not support -profile to instruct linker to use lc_p
+ifeq ($(build-profile)$(have-test-clang),yesno)
tests += tst-profile-static
tests-static += tst-profile-static
--
2.43.0
More information about the Libc-alpha
mailing list