ide/project: Not adding -lstdc++ to C++ projects
authorJerome St-Louis <jerome@ecere.com>
Thu, 27 Mar 2014 16:43:21 +0000 (12:43 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 27 Mar 2014 16:43:21 +0000 (12:43 -0400)
- This was causing linking C++ shared libraries to fail when 'libstdc++.dll.a' is present for MinGW-w64

ide/src/project/Project.ec

index f1a9220..77f15a5 100644 (file)
@@ -3267,7 +3267,7 @@ private:
 
          f.Puts("ifndef STATIC_LIBRARY_TARGET\n");
 
-         f.Printf("\t$(%s) $(OFLAGS) @$(OBJ)objects.lst $(LIBS) %s-o $(TARGET) $(INSTALLNAME)\n", containsCXX ? "CXX" : "CC", containsCXX ? "-lstdc++ " : "");
+         f.Printf("\t$(%s) $(OFLAGS) @$(OBJ)objects.lst $(LIBS) -o $(TARGET) $(INSTALLNAME)\n", containsCXX ? "CXX" : "CC");
          if(!GetDebug(config))
          {
             f.Puts("ifndef NOSTRIP\n");