From 022689bd6bdd713238b34bbd6f1443830459b202 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Sun, 12 Aug 2018 16:32:36 +0200 Subject: Fix mingw cross-build --- SConstruct | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index 7a8fa1c..e61f94a 100644 --- a/SConstruct +++ b/SConstruct @@ -108,14 +108,14 @@ if target_platform == "linux": env.Append(CCFLAGS=["-DRTC_UNUSED=''", "-DNO_RETURN=''"]) elif target_platform == "windows": - env.Append(CCFLAGS=["-DWEBRTC_WIN", "-D_WINSOCKAPI_", "-DNOMINMAX"]) - env.Append(CCFLAGS=["/DRTC_UNUSED=", "/DNO_RETURN="]) # Mostly VisualStudio if env["CC"] == "cl": + env.Append(CCFLAGS=["/DWEBRTC_WIN", "/D_WINSOCKAPI_", "/DNOMINMAX", "/DRTC_UNUSED=", "/DNO_RETURN="]) env.Append(LINKFLAGS=[p + env["LIBSUFFIX"] for p in ["secur32", lib_name]]) env.Append(LIBPATH=[lib_path]) # Mostly "gcc" else: + env.Append(CCFLAGS=["-DWEBRTC_WIN", "-D_WINSOCKAPI_", "-DNOMINMAX", "-DRTC_UNUSED=", "-DNO_RETURN="]) env.Append(LIBS=["secur32", lib_name]) env.Append(LIBPATH=[lib_path]) -- cgit v1.2.3