about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2022-05-02 21:01:43 -0700
committerFangrui Song <maskray@google.com>2022-05-02 21:01:43 -0700
commit20f6c924222f2677d9a53fa3b6c1ea76a1341840 (patch)
tree7898812921c1be18ff647e5482d0c5aee0b4dd9f
parent15c4b8cbcc596700c64deb4047a3ba7f4df7da1b (diff)
downloadglibc-20f6c924222f2677d9a53fa3b6c1ea76a1341840.tar.gz
glibc-20f6c924222f2677d9a53fa3b6c1ea76a1341840.tar.xz
glibc-20f6c924222f2677d9a53fa3b6c1ea76a1341840.zip
Makeconfig: Update clang_rt.crtbegin.o filename
-rw-r--r--Makeconfig9
1 files changed, 4 insertions, 5 deletions
diff --git a/Makeconfig b/Makeconfig
index c1a395a105..fea770fec4 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -662,11 +662,10 @@ endif
 +preinit = $(addprefix $(csu-objpfx),crti.o)
 +postinit = $(addprefix $(csu-objpfx),crtn.o)
 ifeq ($(with-clang),yes)
-# With clang, use the crt*.o files from llvm's compiler-rt package.
-# The files normally have an architecture name appended, in case of
-# variants (32/64, le/be etc) installed in the same directory.
-+prector = `$(CC) $(sysdep-LDFLAGS) --print-file-name=clang_rt.crtbegin-$(config-machine).o`
-+postctor = `$(CC) $(sysdep-LDFLAGS) --print-file-name=clang_rt.crtend-$(config-machine).o`
+# With clang, use the clang_rt.crt*.o files from the compiler-rt package
+# in a LLVM_ENABLE_RUNTIMES build.
++prector = `$(CC) $(sysdep-LDFLAGS) --print-file-name=clang_rt.crtbegin.o`
++postctor = `$(CC) $(sysdep-LDFLAGS) --print-file-name=clang_rt.crtend.o`
 else
 +prector = `$(CC) $(sysdep-LDFLAGS) --print-file-name=crtbegin.o`
 +postctor = `$(CC) $(sysdep-LDFLAGS) --print-file-name=crtend.o`