Browse Source

Fix: [SharedLibs] Add quotation marks to .imp and .def file paths (#75)

Ronny Otto 6 years ago
parent
commit
e45bacc0a4
1 changed files with 3 additions and 3 deletions
  1. 3 3
      bmk_util.bmx

+ 3 - 3
bmk_util.bmx

@@ -337,16 +337,16 @@ Function LinkApp( path$,lnk_files:TList,makelib,opts$ )
 			If FileType( def )<>FILETYPE_FILE Then
 			If FileType( def )<>FILETYPE_FILE Then
 				Print "Warning: Cannot locate .def file (" + def + "). Exporting ALL symbols."
 				Print "Warning: Cannot locate .def file (" + def + "). Exporting ALL symbols."
 			Else
 			Else
-				sb.Append(" ").Append(def)
+				sb.Append(" ").Append(CQuote( def ))
 			End If
 			End If
 			
 			
 			If version < 60000 Then
 			If version < 60000 Then
-				sb.Append(" --out-implib ").Append(imp)
+				sb.Append(" --out-implib ").Append(CQuote( imp ))
 				If usingLD Then
 				If usingLD Then
 					fb.Append(" ").Append(CQuote( RealPath(processor.Option("path_to_mingw_lib", processor.MinGWDLLCrtPath()) + "/dllcrt2.o" ) ))
 					fb.Append(" ").Append(CQuote( RealPath(processor.Option("path_to_mingw_lib", processor.MinGWDLLCrtPath()) + "/dllcrt2.o" ) ))
 				End If
 				End If
 			Else
 			Else
-				sb.Append(" -Wl,--out-implib,").Append(imp)
+				sb.Append(" -Wl,--out-implib,").Append(CQuote( imp ))
 			End If
 			End If
 		Else
 		Else
 			If usingLD
 			If usingLD