From owner-freebsd-current Thu Oct 17 09:33:22 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA10464 for current-outgoing; Thu, 17 Oct 1996 09:33:22 -0700 (PDT) Received: from unix.guru.org (kmitch@unix.guru.org [198.82.200.65]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id JAA10455 for ; Thu, 17 Oct 1996 09:33:15 -0700 (PDT) Received: (from kmitch@localhost) by unix.guru.org (8.7.6/8.7.3) id MAA17938; Thu, 17 Oct 1996 12:33:01 -0400 (EDT) From: Keith Mitchell Message-Id: <199610171633.MAA17938@unix.guru.org> Subject: Re: Weirdness in current In-Reply-To: <199610171616.CAA01871@godzilla.zeta.org.au> from Bruce Evans at "Oct 18, 96 02:16:15 am" To: bde@zeta.org.au (Bruce Evans) Date: Thu, 17 Oct 1996 12:33:01 -0400 (EDT) Cc: current@freebsd.org X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > >> > Ok. Here's an update. I just did a make world from a 10-16 current. > >> > The dynamic linking now appears to work correctly using the math library > >> > by default. > >> > >> Are you saying the math library is brought in even if you don't > >> explicitly ask for it? > > > >Yes. It did that in 2.10R, 2.15R, -stable, and now again in -current. I > >have no idea why though. The program doesn't use any of the functions in > >the math library directly. And, without the math library the program > > Then it must use it indirectly :-). libstdc++ references a lot of math > functions. This is handled by always linking libm for normal invocations > of c++ (look at the c++ -v output). Forgive me, I am somewhat naive when it comes to the interworkings of the linker, but if it needed the library and didn't get it would it not just have unresolved references and not compile?