diff --git a/Makefile.rules b/Makefile.rules index 2b69db81303..ae697354af4 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -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