[ovs-dev] [PATCH] Build Windows include runtime

Alin Serdean aserdean at cloudbasesolutions.com
Fri Feb 26 13:59:10 UTC 2016


This patch adds the Visual Studio runtime to the binaries by adding
the code generation compile flags: MT (release version) and MTd (debug
version).

More on the subject can be found under:
https://msdn.microsoft.com/en-us/library/2kzt1wy3%28v=vs.120%29.aspx

This helps shipping binaries and guaranteeing the runtime uses the specific
version

Signed-off-by: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>
---
 build-aux/cccl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/build-aux/cccl b/build-aux/cccl
index afa0a6b..93f9c50 100644
--- a/build-aux/cccl
+++ b/build-aux/cccl
@@ -90,11 +90,11 @@ EOF
         ;;
 
     -O0)
-        clopt="$clopt ${slash}Od ${slash}D_DEBUG"
+        clopt="$clopt ${slash}Od ${slash}D_DEBUG ${slash}MTd"
         ;;
 
     -O2)
-        clopt="$clopt ${slash}O2"
+        clopt="$clopt ${slash}O2 ${slash}MT"
         ;;
 
     -L*)
-- 
1.9.5.msysgit.0



More information about the dev mailing list