Browse Source

Fix for excessive blank lines from ld on MinGW.

woollybah 10 năm trước cách đây
mục cha
commit
f9f7459e39
1 tập tin đã thay đổi với 6 bổ sung6 xóa
  1. 6 6
      bmk_util.bmx

+ 6 - 6
bmk_util.bmx

@@ -349,12 +349,12 @@ Function LinkApp( path$,lnk_files:TList,makelib,opts$ )
 			cmd:+" "+def
 			cmd:+" --out-implib "+imp
 			If usingLD Then
-				files:+"~n"+CQuote( RealPath(processor.Option("path_to_mingw_lib", processor.MinGWDLLCrtPath()) + "/dllcrt2.o" ) )
+				files:+" "+CQuote( RealPath(processor.Option("path_to_mingw_lib", processor.MinGWDLLCrtPath()) + "/dllcrt2.o" ) )
 			End If
 		Else
 			If usingLD
-				files:+"~n"+CQuote( RealPath(processor.Option("path_to_mingw_lib2", processor.MinGWCrtPath()) + "/crtbegin.o" ) )
-				files:+"~n"+CQuote( RealPath(processor.Option("path_to_mingw_lib", processor.MinGWDLLCrtPath()) + "/crt2.o" ) )
+				files:+" "+CQuote( RealPath(processor.Option("path_to_mingw_lib2", processor.MinGWCrtPath()) + "/crtbegin.o" ) )
+				files:+" "+CQuote( RealPath(processor.Option("path_to_mingw_lib", processor.MinGWDLLCrtPath()) + "/crt2.o" ) )
 			End If
 		EndIf
 	
@@ -367,15 +367,15 @@ Function LinkApp( path$,lnk_files:TList,makelib,opts$ )
 				If f.EndsWith( "/win32maxguiex.mod/xpmanifest.o" )
 					xpmanifest=t
 				Else
-					files:+"~n"+t
+					files:+" "+t
 				EndIf
 			EndIf
 		Next
-		If xpmanifest files:+"~n"+xpmanifest
+		If xpmanifest files:+" "+xpmanifest
 		
 		cmd:+" "+CQuote( tmpfile )
 	
-		files:+"~n-lgdi32 -lwsock32 -lwinmm -ladvapi32"
+		files:+" -lgdi32 -lwsock32 -lwinmm -ladvapi32"
 
 		' add any user-defined linker options
 		files:+ " " + opts