This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [build] Use -z ignore instead of --as-needed on Solaris

Il 08/04/2013 14:20, Rainer Orth ha scritto:
> While the Solaris linker doesn't support the --as-needed/--no-as-needed
> options (yet), it long has provided the equivalent -z ignore/-z record
> options.  This patch makes use of them, avoiding unnecessary
> dependencies on
> Bootstrapped without regressions on i386-pc-solaris2.11 (and checking
> that many dependencies on in runtime libraries are gone
> that were flagged as unused by ldd -u) and x86_64-unknown-linux-gnu
> (gcc/specs unchanged, make check still running).
> Ok for mainline if it passes?

Ok, the gcc.c parts are trivial enough.


> Thanks.
>         Rainer
> 2013-04-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
> 	* (gcc_cv_ld_as_needed): Set
> 	gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
> 	Use -z ignore, -z record on *-*-solaris2*.
> 	(HAVE_LD_AS_NEEDED): Update comment.
> 	* configure: Regenerate.
> 	* Regenerate.
> 	* gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
> 	* config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
> 	* doc/ (USE_LD_AS_NEEDED): Allow for --as-needed
> 	equivalents.  Fix markup.
> 	* doc/tm.texi: Regenerate.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]