diff --git a/dbms/src/Interpreters/Compiler.cpp b/dbms/src/Interpreters/Compiler.cpp index ee6845767e6..3b420b6acce 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 -