From: Adam Megacz <gcc@lists.megacz.com>
To: gcc@gcc.gnu.org
Subject: Re: mingw32 target broken [cygwin as well] [the saga continues]
Date: Sun, 09 Dec 2001 20:38:00 -0000 [thread overview]
Message-ID: <86vgffhepd.fsf@megacz.com> (raw)
In-Reply-To: Jeff Sturm's message of "Sun, 9 Dec 2001 11:02:12 -0500 (EST)"
Jeff Sturm <jsturm@one-point.com> writes:
> A dirty little secret: if all you want is the java runtime, you can skip
> building libstdc++. Just remove it from the toplevel Makefile.
>
> Unfortunately, libjava assumes cross compilers target newlib, just as
> libstdc++ does...
>
> if test -n "${with_cross_host}"; then
> # We are being configured with a cross compiler. AC_REPLACE_FUNCS
> # may not work correctly, because the compiler may not be able to
> # link executables.
>
> # We assume newlib. This lets us hard-code the functions we know
> # we'll have.
Okay, I think I've worked around this for libstdc++-v3... can somebody
with more gcc-hacking experience let me know if this is too kludgey to
submit to gcc-patches@gcc.gnu.org?
I basically just special-cased out mingw32 with the stuff that I know
it doesn't have (said knowledge was acquired by the highly scientific
process of trial and error until it built). I'd like to do a more
elegant job, but I don't really understand gcc's autoconf setup to
come up with anything cleaner.
I've also put this patch into http://www.xwt.org/creating.a.mingw.crosscompiler.html
- a
Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/configure.in,v
retrieving revision 1.79
diff -c -3 -p -r1.79 configure.in
*** configure.in 2001/12/03 22:28:57 1.79
--- configure.in 2001/12/10 04:28:53
*************** if test -n "$with_cross_host" || test x"
*** 124,129 ****
--- 124,132 ----
AC_DEFINE(HAVE_SINCOS)
AC_DEFINE(HAVE_SINCOSF)
;;
+ *-mingw*)
+ os_include_dir="config/os/mingw32"
+ ;;
*)
os_include_dir="config/os/newlib"
AC_DEFINE(HAVE_HYPOT)
*************** if test -n "$with_cross_host" || test x"
*** 136,171 ****
# AC_FUNC_MMAP
AC_DEFINE(HAVE_MMAP)
! AC_DEFINE(HAVE_ACOSF)
! AC_DEFINE(HAVE_ASINF)
! AC_DEFINE(HAVE_ATAN2F)
! AC_DEFINE(HAVE_ATANF)
! AC_DEFINE(HAVE_CEILF)
! AC_DEFINE(HAVE_COPYSIGN)
! AC_DEFINE(HAVE_COPYSIGNF)
! AC_DEFINE(HAVE_COSF)
! AC_DEFINE(HAVE_COSHF)
! AC_DEFINE(HAVE_EXPF)
! AC_DEFINE(HAVE_FABSF)
! AC_DEFINE(HAVE_FINITE)
! AC_DEFINE(HAVE_FINITEF)
! AC_DEFINE(HAVE_FLOORF)
! AC_DEFINE(HAVE_FMODF)
! AC_DEFINE(HAVE_FREXPF)
! AC_DEFINE(HAVE_ISINF)
! AC_DEFINE(HAVE_ISINFF)
! AC_DEFINE(HAVE_ISNAN)
! AC_DEFINE(HAVE_ISNANF)
! AC_DEFINE(HAVE_LDEXPF)
! AC_DEFINE(HAVE_LOG10F)
! AC_DEFINE(HAVE_LOGF)
! AC_DEFINE(HAVE_MODFF)
! AC_DEFINE(HAVE_POWF)
! AC_DEFINE(HAVE_SINF)
! AC_DEFINE(HAVE_SINHF)
! AC_DEFINE(HAVE_SQRTF)
! AC_DEFINE(HAVE_TANF)
! AC_DEFINE(HAVE_TANHF)
# At some point, we should differentiate between architectures
# like x86, which have long double versions, and alpha/powerpc/etc.,
--- 139,179 ----
# AC_FUNC_MMAP
AC_DEFINE(HAVE_MMAP)
! case "$target_alias" in
! *-mingw*)
! ;;
! *)
! AC_DEFINE(HAVE_ACOSF)
! AC_DEFINE(HAVE_ASINF)
! AC_DEFINE(HAVE_ATAN2F)
! AC_DEFINE(HAVE_ATANF)
! AC_DEFINE(HAVE_CEILF)
! AC_DEFINE(HAVE_COPYSIGN)
! AC_DEFINE(HAVE_COPYSIGNF)
! AC_DEFINE(HAVE_COSF)
! AC_DEFINE(HAVE_COSHF)
! AC_DEFINE(HAVE_EXPF)
! AC_DEFINE(HAVE_FABSF)
! AC_DEFINE(HAVE_FINITE)
! AC_DEFINE(HAVE_FINITEF)
! AC_DEFINE(HAVE_FLOORF)
! AC_DEFINE(HAVE_FMODF)
! AC_DEFINE(HAVE_FREXPF)
! AC_DEFINE(HAVE_ISINF)
! AC_DEFINE(HAVE_ISINFF)
! AC_DEFINE(HAVE_ISNAN)
! AC_DEFINE(HAVE_ISNANF)
! AC_DEFINE(HAVE_LDEXPF)
! AC_DEFINE(HAVE_LOG10F)
! AC_DEFINE(HAVE_LOGF)
! AC_DEFINE(HAVE_MODFF)
! AC_DEFINE(HAVE_POWF)
! AC_DEFINE(HAVE_SINF)
! AC_DEFINE(HAVE_SINHF)
! AC_DEFINE(HAVE_SQRTF)
! AC_DEFINE(HAVE_TANF)
! AC_DEFINE(HAVE_TANHF)
! esac
# At some point, we should differentiate between architectures
# like x86, which have long double versions, and alpha/powerpc/etc.,
next prev parent reply other threads:[~2001-12-10 4:37 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-07 21:06 mingw32 target broken Adam Megacz
2001-12-07 22:01 ` Adam Megacz
[not found] ` <20011208003722.A14955@mediaone.net>
2001-12-07 23:12 ` mingw32 target broken [cygwin as well] Adam Megacz
2001-12-07 23:40 ` Craig Rodrigues
2001-12-08 0:00 ` mingw32 target broken [cygwin as well] [didn't know cross-compilers were such an ordeal] Adam Megacz
2001-12-08 16:00 ` Jeff Sturm
2001-12-08 16:05 ` Adam Megacz
2001-12-08 14:42 ` mingw32 target broken [cygwin as well] Jeff Sturm
2001-12-08 16:04 ` mingw32 target broken [cygwin as well] [the saga continues] Adam Megacz
2001-12-08 18:19 ` Craig Rodrigues
2001-12-08 18:30 ` Adam Megacz
2001-12-08 18:39 ` Craig Rodrigues
2001-12-08 18:56 ` Adam Megacz
2001-12-09 9:07 ` Jeff Sturm
2001-12-09 20:38 ` Adam Megacz [this message]
2001-12-10 12:36 ` DJ Delorie
2001-12-10 12:48 ` Joseph S. Myers
2001-12-10 12:57 ` DJ Delorie
2001-12-10 21:06 ` Jeff Sturm
2001-12-10 21:08 ` DJ Delorie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86vgffhepd.fsf@megacz.com \
--to=gcc@lists.megacz.com \
--cc=gcc@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).