Fix for compiling on Solaris

Eric Christopher echristo at gmail.com
Fri Feb 27 10:27:47 PST 2015


Hi Bill,

Will the sun linker gc the sections itself then? or do we need to avoid
using -ffunction-section/-fdata-sections as well?

-eric

On Fri, Feb 27, 2015 at 10:09 AM bill rushmore <bill.rushmore at oracle.com>
wrote:

> I have a very simple patch for Makefile.rules that solves the problem of
> trying to build on Solaris.  The issue is that Solaris' gcc uses the
> Solaris linker and that linker doesn't have the --gc-sections flag.
> This patch fixes Bug 18517.
>
> Bill Rushmore
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150227/bfa4391f/attachment.html>


More information about the llvm-commits mailing list