From: Denis Zaitsev Subject: Re: [i386] Why g++ _always_ link an executable with libm.so? Date: Thu, 6 Jan 2005 03:09:54 +0500 Message-ID: <20050106030954.K1437@natasha.ward.six> References: <20050105030102.G1437@natasha.ward.six> <20050104220523.GA24316@nevyn.them.org> <20050105031847.H1437@natasha.ward.six> <20050105035915.I1437@natasha.ward.six> <51D8FCE4-5EA5-11D9-9A04-000A95D692F4@physics.uc.edu> <9AA708C4-5F46-11D9-A9D4-000A95D692F4@physics.uc.edu> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <9AA708C4-5F46-11D9-A9D4-000A95D692F4@physics.uc.edu>; from pinskia@physics.uc.edu on Wed, Jan 05, 2005 at 01:21:23PM -0500 Sender: linux-gcc-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Andrew Pinski Cc: Mike Hearn , gcc@gcc.gnu.org, linux-gcc@vger.kernel.org On Wed, Jan 05, 2005 at 01:21:23PM -0500, Andrew Pinski wrote: > > On Jan 5, 2005, at 12:14 PM, Mike Hearn wrote: > > > I also find it strange (broken) that a c++ app that doesn't use any > > libm > > symbols is linked to it anyway. Why does it matter? > > because libstdc++ might pull in libm symbols without the person knowing > he did. Ok. But the question in general is not about that. It is not a problem that libm is NEEDED by libstdc++, but why this NEEDED leads to the same NEEDED for the app? Isn't the first depndency enough?