Subject: Re: split out libraries from gcc3-c?
To: Jeremy C. Reed <reed@reedmedia.net>
From: John R. Shannon <john@johnrshannon.com>
List: tech-pkg
Date: 12/19/2003 11:38:05
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

libgcc contains calls to a macro declared procedure:

__enable_execute_stack (void *)

that results in an error like the following when you link libgcc into a sha=
red=20
library on many platforms:

/usr/bin/ld: gate-in.exe: hidden symbol `__enable_execute_stack' in
/lib/gcc-lib/i386--netbsdelf2.0/3.3.2/libgcc.a(_trampoline.oS) is referenced
by DSO

The call is in macro TRANSFER_FROM_TRAMPOLINE. It's called in=20
gnu/dist/gcc/gcc/libgcc2.c.

Have you encountered this yet?

On Friday 19 December 2003 11:18 am, Jeremy C. Reed wrote:
> I made a gcc3-c++-lib package. (Maybe it should have different name.)
>
> It installs the libraries and headers (like gcc3/lib/libstdc++.so.5 and
> gcc3/include/c++/3.3.2/istream).
>
> It doesn't save much diskspace though -- only about 4MB saved which is
> basically all cc1plus.
>
> But libstdc++.so links with gcc3/lib/libgcc_s.so.1.
>
> So has anyone worked on making a gcc3-c-lib package?
>
> One reason is to not have a compiler installed. I have systems where I
> don't want a compiler and I don't use any compiler.
>
> I will post my lang/gcc3-c++ patches and new lang/gcc3-c++-lib later.
>
>    Jeremy C. Reed
>    http://bsd.reedmedia.net/

=2D --=20

John R. Shannon
john@johnrshannon.com
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iEYEARECAAYFAj/jRY0ACgkQOKbCxya4HYtNHACgqk0q/py8eRTmfzFNQqjRA4HP
HMUAni4To/bZr9jEyIxwFbpJg67HX0a4
=3DvFv8
=2D----END PGP SIGNATURE-----