Forum: Ruby Compiling for mingw32 under Cygwin

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ad7805c9fcc1f13efc6ed11251a6c4d2?d=identicon&s=25 Alex Young (Guest)
on 2006-05-31 18:37
(Received via mailing list)
Hi there,

I'm trying to compile Ruby under Cygwin, but I want to target mingw32.
Although I've got the mingw32 tools installed, the ./configure step
doesn't spot them.  Has anyone had any luck with this?  Just setting
CFLAGS='-mno-cygwin' isn't enough, it seems.
5d8990b757a1305f8e9100e9e4e5073d?d=identicon&s=25 WATANABE Hirofumi (Guest)
on 2006-05-31 18:59
(Received via mailing list)
Hi,

Alex Young <alex@blackkettle.org> writes:

> I'm trying to compile Ruby under Cygwin, but I want to target mingw32.
> Although I've got the mingw32 tools installed, the ./configure step
> doesn't spot them.  Has anyone had any luck with this?  Just setting
> CFLAGS='-mno-cygwin' isn't enough, it seems.

% ./configure --with-gcc='gcc -mno-cygwin'
Ad7805c9fcc1f13efc6ed11251a6c4d2?d=identicon&s=25 Alex Young (Guest)
on 2006-05-31 19:18
(Received via mailing list)
WATANABE Hirofumi wrote:
>
Thanks :-)  Looks like that's working - make test passes, at least.

I'd assumed that would be equivalent to setting CFLAGS, but it doesn't
look like it is.  Why isn't it, and should it be?
F1d6cc2b735bfd82c8773172da2aeab9?d=identicon&s=25 unknown (Guest)
on 2006-06-01 16:46
(Received via mailing list)
Hi,

At Thu, 1 Jun 2006 02:16:15 +0900,
Alex Young wrote in [ruby-talk:195328]:
> I'd assumed that would be equivalent to setting CFLAGS, but it doesn't
> look like it is.  Why isn't it, and should it be?

CFLAGS have no effect to a preprocesser.  Leaving it as cygwin
would cause problems.
This topic is locked and can not be replied to.