Browse Source

Use -static-libgcc for dll builds. Fixes #64.

woollybah 6 years ago
parent
commit
0287c5e9a2
3 changed files with 8 additions and 1 deletions
  1. 4 0
      CHANGELOG
  2. 1 1
      bmk_config.bmx
  3. 3 0
      bmk_util.bmx

+ 4 - 0
CHANGELOG

@@ -1,3 +1,7 @@
+## [3.33] - 2019-03-05
+### Fixed
+ - DLLs now statically link against libgcc.
+
 ## [3.32] - 2019-02-11
 ### Added
  - New 'override' and 'overerr' options for bcc Override support.

+ 1 - 1
bmk_config.bmx

@@ -10,7 +10,7 @@ Import brl.map
 
 Import "stringbuffer_core.bmx"
 
-Const BMK_VERSION:String = "3.32"
+Const BMK_VERSION:String = "3.33"
 
 Const ALL_SRC_EXTS$="bmx;i;c;m;h;cpp;cxx;mm;hpp;hxx;s;cc;asm;S"
 

+ 3 - 0
bmk_util.bmx

@@ -299,6 +299,9 @@ Function LinkApp( path$,lnk_files:TList,makelib,opts$ )
 		End If
 		If makelib Then
 			sb.Append(" -shared")
+			If processor.Platform() = "win32" Then
+				sb.Append(" -static-libgcc")
+			End If
 		Else
 			sb.Append(" -static")
 		End If