This is the mail archive of the cygwin@sourceware.cygnus.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]
Re: libm.a for Mingw32?
- To: "Arcadio A. Sincero Jr." <asincero@sinceronet.ddns.org>
- Subject: Re: libm.a for Mingw32?
- From: Mumit Khan <khan@xraylith.wisc.EDU>
- Date: Tue, 09 Feb 1999 10:38:15 -0600
- cc: Gnu-Win32 Mailing List <gnu-win32@cygnus.com>
- Delivered-To: listarch-cygwin@sourceware.cygnus.com
- Delivered-To: mailing list cygwin@sourceware.cygnus.com
- In-reply-to: Your message of "Tue, 09 Feb 1999 11:24:32 EST." <Pine.LNX.4.05.9902091116260.6614-100000@intranet.sincero.net>
- Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
- Sender: cygwin-owner@sourceware.cygnus.com
"Arcadio A. Sincero Jr." <asincero@sinceronet.ddns.org> writes:
> On Tue, 9 Feb 1999, Mumit Khan wrote:
> I've been wondering: from where did you compile the libm.a for the
> Mingw32 target from? Is this from the newlib package thats in the Cygwin
> B20.1 source tree? I guess I'm a little anal about using pre-built binary
> packages ;-). I prefer building them myself from source. Not only is it
> very educational, but I also get to control exactly what and where things
> get installed.
Here's the simples libm.a for mingw32:
$ ar crv libm.a
$ ranlib libm.a
Pretty easy, huh? Some people prefer to put a dummy.o file in there just
to be consistent.
> FWIW - I've compiled simple test programs which uses functions
> that are supposed to be in libm.a (at least on Linux it is) such as pow(),
> but they linked and executed just fine even though I didn't specify -lm on
> the linker command line. Is having a libm.a absolutley necessary?
That's because all of libm you expect on Unix is already in the runtime
DLL and libm.a is there only to satisfy configurations that expect it.
Regards,
Mumit
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com