Added "/MLd" to CFLAGS and added "/nodefaultlib:libc.lib" to link command to make...
authorjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Thu, 25 Oct 2007 08:13:48 +0000 (08:13 +0000)
committerjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Thu, 25 Oct 2007 08:13:48 +0000 (08:13 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@848 7335b38e-4728-0410-8992-fb3ffe349368

Source/C/MSmakefile.app
Source/C/MSmakefile.common

index e9ec19f..014a462 100644 (file)
@@ -6,7 +6,7 @@ all: $(APPLICATION)
 
 $(APPLICATION) : $(OBJECTS) 
        -@if not exist $(BIN_PATH) mkdir $(BIN_PATH)
-       $(LD) /nologo /debug /incremental:no /out:$@ /libpath:$(LIB_PATH) $(LIBS) $**
+       $(LD) /nologo /debug /incremental:no /nodefaultlib:libc.lib /out:$@ /libpath:$(LIB_PATH) $(LIBS) $**
 
 .PHONY:clean
 .PHONY:cleanall
index c27fb91..fd6b786 100644 (file)
@@ -44,6 +44,6 @@ LINKER = $(LD)
 
 INC = -I . -I $(SOURCE_PATH)\Include -I $(ARCH_INCLUDE) -I $(SOURCE_PATH)\Common $(INC)
 
-CFLAGS = $(CFLAGS) /nologo /c /Zi /Od /GZ /D_DEBUG
-CPPFLAGS = $(CPPFLAGS) /EHsc /nologo /c /Zi /Od /GZ /D_DEBUG
+CFLAGS = $(CFLAGS) /nologo /c /Zi /Od /GZ /D_DEBUG /MLd
+CPPFLAGS = $(CPPFLAGS) /EHsc /nologo /c /Zi /Od /GZ /D_DEBUG /MLd