]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Makeconfig: Update clang_rt.crtbegin.o filename
authorFangrui Song <maskray@google.com>
Tue, 3 May 2022 04:01:43 +0000 (21:01 -0700)
committerFangrui Song <maskray@google.com>
Tue, 3 May 2022 04:01:43 +0000 (21:01 -0700)
Makeconfig

index c1a395a105fb702cf64c33b7d44f0d8b6c4be8fc..fea770fec467c4e68c1b95b35b7a69801931d2e2 100644 (file)
@@ -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`