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?
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
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
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
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
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
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