-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jorge Morais wrote: > I want these two flags (--as-needed and --hash-style=gnu) to be active > before I adopt GCC 4.3 and recompile world.
Just as an FYI, you do not need to rebuild the world when you upgrade GCC - the only time this was needed was around the GCC 3.3 to 3.4 transition, because of a one-time ABI breakage. > By the way, binaries linked with --as-needed are compatible with binaries > linked without it, yes? > The --as-needed flag simply tells the linker to be more selective about which libraries to link against -- it does not change anything about the format, etc. of the library itself (to be precise, using --as-needed will cause only the NEEDED entries that are actually needed to be emitted to the final binary). So, to answer your question, yes, they are perfectly compatible with each other. - -- ABCD -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknjUuAACgkQOypDUo0oQOoi2QCeJYCNxTHeYs3y3f1pvlVRRaqj Fj0AoI5hHtgUjjLFe64Rq/j+QKplrlwG =lOyY -----END PGP SIGNATURE-----