aboutsummaryrefslogtreecommitdiff
path: root/ports/ode/0001-add-static-runtime-option.patch
blob: 1f0d15b5643fbac7c8fa09c13c61eb7e69848531 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
diff --git a/build/premake4.lua b/build/premake4.lua
index c39b9b7..d1559f7 100644
--- a/build/premake4.lua
+++ b/build/premake4.lua
@@ -150,7 +150,12 @@
     trigger     = "only-double",
 	description = "Only use double-precision math"
   }
-  
+
+  newoption {
+    trigger     = "static-runtime",
+	description = "Perform a static link against the standard runtime libraries"
+  }
+
   -- always clean all of the optional components and toolsets
   if _ACTION == "clean" then
     _OPTIONS["with-demos"] = ""
@@ -253,7 +258,11 @@
     configuration { "vs2002 or vs2003", "*Lib" }
       flags  { "StaticRuntime" }
 
-
+    -- optionally enable StaticRuntime
+    if _OPTIONS["static-runtime"] then
+      configuration { "*" }
+        flags  { "StaticRuntime" }
+    end
 
 ----------------------------------------------------------------------
 -- The demo projects, automated from list above. These go first so