From ea98bd4ae27a841d5bd9a2c69d5fab37e9708dd3 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sat, 3 Aug 2019 06:01:13 +0300 Subject: [PATCH] Avoid extra dependency in Compiler (used with compile = 1 setting) --- dbms/src/Interpreters/Compiler.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dbms/src/Interpreters/Compiler.cpp b/dbms/src/Interpreters/Compiler.cpp index ee6845767e..3b420b6acc 100644 --- a/dbms/src/Interpreters/Compiler.cpp +++ b/dbms/src/Interpreters/Compiler.cpp @@ -236,6 +236,9 @@ void Compiler::compile( " -fuse-ld=" << compiler_executable_root << INTERNAL_LINKER_EXECUTABLE " -fdiagnostics-color=never" + /// Do not use libgcc and startup files. The library will work nevertheless and we avoid extra dependency. + " -nodefaultlibs -nostartfiles" + #if INTERNAL_COMPILER_CUSTOM_ROOT /// To get correct order merge this results carefully: /// echo | clang -x c++ -E -Wp,-v - -- GitLab