When linking the runtime libraries, do not link -lc and -lgcc into the libraries
authorChris Lattner <sabre@nondot.org>
Tue, 21 Oct 2003 18:00:37 +0000 (18:00 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 21 Oct 2003 18:00:37 +0000 (18:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9339 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules

index 2b69db81303b730f9351db73da83c14c0557f989..ae697354af4a1723225428f030bc23c838ac8540 100644 (file)
@@ -475,7 +475,7 @@ endif
 # Rules for building libraries
 #--------------------------------------------------------------------
 
-LinkBCLib := $(LLVMGCC) -shared
+LinkBCLib := $(LLVMGCC) -shared -nostdlib
 ifdef EXPORTED_SYMBOL_LIST
 LinkBCLib += -Xlinker -internalize-public-api-list=$(EXPORTED_SYMBOL_LIST)
 else