Re: RFC: An option to link against static gcc libraries

2005-12-30 Thread H. J. Lu
On Fri, Dec 30, 2005 at 08:05:13PM +0100, Jakub Jelinek wrote: > On Fri, Dec 30, 2005 at 10:58:16AM -0800, H. J. Lu wrote: > > > One, this will not work at all libobjc or libgcj since they > > > require lookups at runtime. > > > > Are you saying "gcc -static" doesn't work with libobjc and libgcj?

Re: RFC: An option to link against static gcc libraries

2005-12-30 Thread David Daney
H. J. Lu wrote: On Fri, Dec 30, 2005 at 01:56:16PM -0500, Andrew Pinski wrote: On Dec 30, 2005, at 1:53 PM, H. J. Lu wrote: Gcc build executable linking against dynamic libraries by default. "-static" will link against all static libraries. For run-time portability, we may want to link again

Re: RFC: An option to link against static gcc libraries

2005-12-30 Thread Jakub Jelinek
On Fri, Dec 30, 2005 at 10:58:16AM -0800, H. J. Lu wrote: > > One, this will not work at all libobjc or libgcj since they > > require lookups at runtime. > > Are you saying "gcc -static" doesn't work with libobjc and libgcj? It certainly doesn't work with libgcj (well, you can link in libgcj.a, b

Re: RFC: An option to link against static gcc libraries

2005-12-30 Thread Andrew Pinski
On Dec 30, 2005, at 1:58 PM, H. J. Lu wrote: Are you saying "gcc -static" doesn't work with libobjc and libgcj? Yes, they have never really worked. You need to cause to import all of the .a file instead of just letting the linker link in the parts that it says it needs. -- Pinski

Re: RFC: An option to link against static gcc libraries

2005-12-30 Thread H. J. Lu
On Fri, Dec 30, 2005 at 01:56:16PM -0500, Andrew Pinski wrote: > > On Dec 30, 2005, at 1:53 PM, H. J. Lu wrote: > > >Gcc build executable linking against dynamic libraries by default. > >"-static" will link against all static libraries. For run-time > >portability, we may want to link against sta

Re: RFC: An option to link against static gcc libraries

2005-12-30 Thread Andrew Pinski
On Dec 30, 2005, at 1:53 PM, H. J. Lu wrote: Gcc build executable linking against dynamic libraries by default. "-static" will link against all static libraries. For run-time portability, we may want to link against static gcc libraries, like libstdc++.a, libgfortran.a, libgcj.a, , but agai

RFC: An option to link against static gcc libraries

2005-12-30 Thread H. J. Lu
Gcc build executable linking against dynamic libraries by default. "-static" will link against all static libraries. For run-time portability, we may want to link against static gcc libraries, like libstdc++.a, libgfortran.a, libgcj.a, , but against dynamic system libraries, when we building ex