-----Original Message----- From: Steven Edwards [mailto:Steven_Ed4153@yahoo.com] Sent: Sunday, April 28, 2002 2:35 PM
- run ./configure --host=mingw32 --target=mingw32
--build=mingw32 CFLAGS="-D_MINGW_ -D_WINDOWS -DWINE_NOWINSOCK"
You should probably add CC="gcc -mno-cygwin" CXX="gcc -mno-cygwin" to the configure line if you don't have a mingw cross compiler installed.
- add -liberty to the makefile for wrc and wmc. This is
needed because of getopt and optarg
Cygwin has a BSD licenced getopt.c that doesn't need libiberty to link, only mingw (AFAIK). Anyway worth investigating?
Rob
On Sun, 28 Apr 2002, Robert Collins wrote: [...]
- add -liberty to the makefile for wrc and wmc. This is
needed because of getopt and optarg
Cygwin has a BSD licenced getopt.c that doesn't need libiberty to link, only mingw (AFAIK). Anyway worth investigating?
I usually regard getopt functions as higly unportable and always try to avoid them. I did not check how they are used in wrc&co, but it should not be very difficult to do entirely without them. I believe that would be the best solution.
-- Francois Gouget fgouget@free.fr http://fgouget.free.fr/ Hiroshima '45 - Czernobyl '86 - Windows '95
On Sun, Apr 28, 2002 at 01:15:17PM -0700, Francois Gouget wrote:
On Sun, 28 Apr 2002, Robert Collins wrote: [...]
- add -liberty to the makefile for wrc and wmc. This is
needed because of getopt and optarg
Cygwin has a BSD licenced getopt.c that doesn't need libiberty to link, only mingw (AFAIK). Anyway worth investigating?
I usually regard getopt functions as higly unportable and always try to avoid them. I did not check how they are used in wrc&co, but it should not be very difficult to do entirely without them. I believe that would be the best solution.
Yep, probably, given getopt()s slightly dainbramaged way of handling commands with or without spacing. It's only sooo often a major annoyance ! (witness e.g. the current wineinstall "su" mess)
But OTOH command line handling/spacing issues are a difficult thing, so maybe it's not even getopt that's to blame, because it's difficult per se.