Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Apr 1999 16:39:41 -0700 (PDT)
From:      <kip@lyris.com>
To:        Alfred Perlstein <bright@rush.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: FreeBSD linking against libc_r instead of libc 
Message-ID:  <Pine.SOL.4.05.9904241635460.23220-100000@luna>
In-Reply-To: <Pine.BSF.3.96.990424183351.2095U-100000@cygnus.rush.net>

next in thread | previous in thread | raw e-mail | index | archive | help
That keeps it from linking against the standard libraries -- 
however, I am not sure how to add all the need libraries (libstdc++ etc.)
back in. Even when I try -L/path to libstdc++ libgcc etc./ -lstdc++ -lgcc 
I get complaints of missing symbols eg. cout, __eh_alloc, etc. perhaps you
could give me an example where you use -nostdlib in linking a simple
program. Thanks again.
					-Kip 

On Sat, 24 Apr 1999, Alfred Perlstein wrote:

> On Sat, 24 Apr 1999 kip@lyris.com wrote:
> 
> > > 
> > > I don't have egcs from the port available, but what you might want
> > > to try is combinations of -nostdlib and -lc_r until someone comes up
>                                ^^^^^^^^
> yo! right here! ------------------/
> 
> > > with a real answer.  Sorry i didn't see the 'egcs' in your question.
> > > 
> > When I do -lc_r it links against both libc and libc_r. Is there any way to
> > tell it _not_ to link against libc, such that all linking is explicit?
> 
> did you try that?
> 
> -Alfred
> 
> 
> 




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.4.05.9904241635460.23220-100000>