Visual-MinGW: Winelib patch
Dimitrie O. Paun
dpaun at rogers.com
Tue Dec 31 01:16:50 CST 2002
Hi Manu,
I got around getting Visual-MinGW to compile under Winelib.
This patch touches only your makefile, and I hope the changes
are not controversial:
-- Use forward slash instead of backslash
-- Explicitly list the DLLs you link against (shell32, comdlg32, advapi32)
-- It make sense to specify -mno-cygwin
For some reason, the code seems to require it. Please check
that it works under Windows as well. If it does, if makes
sense to have it as Visual-MinGW should not have a dependency
on Cygwin, as far as I can tell.
-- Do not use -pedantic, the code does not compile with gcc 3.2
on Linux with that flag.
-- Do not use -fvtable-thunks, it is deprecated in gcc 3.2
Please apply this patch with 'patch -p1 < winelib.diff'.
Note that I still need to get some changes integrated into the
official Wine tree before you can actually compile Visual-MinGW
under Winelib. The changes are not controversial, and I hope to
get them in real soon. I will let you know when that happens.
Regardless, I think the changes I'm proposing are logical in and
of themselves, so I figured they can be integrated regardless.
Enjoy!
--- Visual-MinGW.orig/Projects/vmingw/src/makefile 2002-06-08 06:07:10.000000000 -0400
+++ Visual-MinGW/Projects/vmingw/src/makefile 2002-12-31 01:43:29.000000000 -0500
@@ -1,25 +1,25 @@
# Generated automatically by Visual-MinGW.
# http://visual-mingw.sourceforge.net/
-CC = g++
+CXX = g++
WRES = windres
DLLWRAP = dllwrap
CPPFLAGS = -D_WIN32_IE=0x0400
-LDBASEFLAGS = -mwindows -lcomctl32 -lole32
+LDBASEFLAGS = -mwindows -mno-cygwin -lcomctl32 -lole32 -lshell32 -lcomdlg32 -ladvapi32
INCDIRS = -I ../include
OPTIMIZ = -O2
STRIP = -s
ifeq ($(MAKECMDGOALS),debug)
-CXXFLAGS = -W -Wall -pedantic $(INCDIRS) -g -fvtable-thunks -fno-rtti
+CXXFLAGS = -W -Wall $(INCDIRS) -g -mno-cygwin -fno-rtti
LDFLAGS = $(LDBASEFLAGS)
else
-CXXFLAGS = -W -Wall -pedantic $(INCDIRS) $(OPTIMIZ) -fvtable-thunks -fno-rtti
+CXXFLAGS = -W -Wall $(INCDIRS) $(OPTIMIZ) -mno-cygwin -fno-rtti
LDFLAGS = $(STRIP) $(LDBASEFLAGS)
endif
-SRCDIR = .\src
-BINDIR = ..\bin
+SRCDIR = ./src
+BINDIR = ../bin
LIBDIRS =
%.o : %.rc
@@ -51,7 +51,7 @@
# Dependency rules
$(TARGET): $(OBJS)
- $(CXX) -o $(BINDIR)\visual-mingw.exe $(OBJS) $(INCDIRS) $(LIBDIRS) $(LDFLAGS)
+ $(CXX) -o $(BINDIR)/visual-mingw.exe $(OBJS) $(INCDIRS) $(LIBDIRS) $(LDFLAGS)
rsrc.o: rsrc.rc
--
Dimi.
More information about the wine-devel
mailing list