summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cpp/config/Make.rules.MINGW12
-rw-r--r--cpp/src/Slice/Preprocessor.cpp2
2 files changed, 5 insertions, 9 deletions
diff --git a/cpp/config/Make.rules.MINGW b/cpp/config/Make.rules.MINGW
index 4832988d0b9..1709dc17618 100644
--- a/cpp/config/Make.rules.MINGW
+++ b/cpp/config/Make.rules.MINGW
@@ -25,11 +25,7 @@ endif
ICE_WIN32_WINNT := 0x601
CXXFLAGS = $(CXXARCHFLAGS) -mthreads -fvisibility=hidden -Wall -Werror -D_WIN32_WINNT=$(ICE_WIN32_WINNT) -DWIN32_LEAN_AND_MEAN
-LDFLAGS = -Wl,-no-undefined
-
-ifeq ($(CXX), i686-pc-mingw32-c++)
- LDPLATFORMFLAGS := $(LDFLAGS) -static-libstdc++ -static-libgcc
-endif
+LDFLAGS = -Wl,-no-undefined
ifeq ($(OPTIMIZE),yes)
CXXFLAGS += -O2 -DNDEBUG
@@ -78,9 +74,9 @@ installprogram = $(INSTALL_PROGRAM) $(1) $(2); \
CPPFLAGS := -I"$(THIRDPARTY_HOME)/include" $(CPPFLAGS)
LDPLATFORMFLAGS := -L"$(THIRDPARTY_HOME)/$(libsubdir)" $(LDFLAGS)
-SSL_OS_LIBS = -lsecur32 -lcrypt32 -lws2_32
+SSL_OS_LIBS = -lsecur32 -lcrypt32 -lws2_32
-ICEWS_OS_LIBS = -lws2_32
+ICEWS_OS_LIBS = -lws2_32
ifeq ($(LP64),yes)
MCPP_LIBS = -L"$(THIRDPARTY_HOME)/lib/mingw$(lp64suffix)" -lmcpp
@@ -99,4 +95,4 @@ SLICE_LIBS = -lslice$(SOVERSION)$(COMPSUFFIX) $(BASELIBS)
ICEUTIL_OS_LIBS = -lrpcrt4 -ladvapi32
ICE_OS_LIBS = $(ICEUTIL_OS_LIBS) -lIphlpapi -lws2_32
-EXE_EXT = .exe
+EXE_EXT = .exe
diff --git a/cpp/src/Slice/Preprocessor.cpp b/cpp/src/Slice/Preprocessor.cpp
index ca90a8ce85c..a549d224a89 100644
--- a/cpp/src/Slice/Preprocessor.cpp
+++ b/cpp/src/Slice/Preprocessor.cpp
@@ -369,7 +369,7 @@ Slice::Preprocessor::printMakefileDependencies(Language lang, const vector<strin
//
// Get the main output file name.
//
-#ifdef _WIN32
+#ifdef _MSC_VER
string suffix = ".obj:";
#else
string suffix = ".o:";