This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][Revised] Pass -no_pie on SYSTEMSPEC for darwin11
- From: Mike Stump <mikestump at comcast dot net>
- To: "gcc-patches at gcc dot gnu dot org List" <gcc-patches at gcc dot gnu dot org>
- Cc: Jack Howarth <howarth at bromo dot med dot uc dot edu>, Iain Sandoe <iains at gcc dot gnu dot org>
- Date: Sun, 19 Jun 2011 11:15:11 -0700
- Subject: Re: [PATCH][Revised] Pass -no_pie on SYSTEMSPEC for darwin11
- References: <20110618024913.GA29537@bromo.med.uc.edu> <8035A572-9078-46F4-9172-8CB269E1E854@comcast.net>
On Jun 18, 2011, at 8:11 AM, Mike Stump wrote:
> On Jun 17, 2011, at 7:49 PM, Jack Howarth wrote:
>> The gcj compiler needs to pass -no_pie for linkage on darwin11 due to the new -pie
>> default of the linker. The attached patch accomplishes this by passing -no_pie on SYSTEMSPEC
>> for *-*-darwin[12]*. Since Darwin10 supports -no_pie in its linker, I included it in the
>> triplet match to simplify the syntax. Bootstrap and tested on x86_64-apple-darwin11.
>> Okay for gcc trunk with PR added to comment as requested?
>> Jack
>> ps This change also works for gcc-4_6-branch in concert with a backport of
>> r175089 and r175108.
>>
>> 2011-06-17 Jack Howarth <howarth@bromo.med.uc.edu>
>>
>> PR target/49461
>> * libjava/configure.ac (SYSTEMSPEC): Pass -no_pie for darwin11.
>> * libjava/configure: Regenerate.
>
> Checked in r175182, with one additional comment. We still welcome tracking down what exactly doesn't work and a bug report and fix for that, until then, I think life is too short to have java be broken for too long.
Also backported for 4.6.1.