From patchwork Thu Jun 16 01:33:50 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Stump X-Patchwork-Id: 100588 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id D582BB6F93 for ; Thu, 16 Jun 2011 15:47:09 +1000 (EST) Received: (qmail 10288 invoked by alias); 16 Jun 2011 05:47:08 -0000 Received: (qmail 10280 invoked by uid 22791); 16 Jun 2011 05:47:07 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RFC_ABUSE_POST, SPF_NEUTRAL X-Spam-Check-By: sourceware.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (140.186.70.92) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 16 Jun 2011 05:46:54 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QX1TJ-0005tu-0s for gcc-patches@gcc.gnu.org; Wed, 15 Jun 2011 21:34:13 -0400 Received: from qmta14.emeryville.ca.mail.comcast.net ([76.96.27.212]:45384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QX1TI-0005tL-Pt for gcc-patches@gcc.gnu.org; Wed, 15 Jun 2011 21:34:12 -0400 Received: from omta22.emeryville.ca.mail.comcast.net ([76.96.30.89]) by qmta14.emeryville.ca.mail.comcast.net with comcast id wRJv1g0041vN32cAERZqVd; Thu, 16 Jun 2011 01:33:50 +0000 Received: from up.mrs.kithrup.com ([24.4.193.8]) by omta22.emeryville.ca.mail.comcast.net with comcast id wRZi1g00Z0BKwT48iRZjjj; Thu, 16 Jun 2011 01:33:43 +0000 From: Mike Stump Subject: Turn on -pie on darwin11 and later Date: Wed, 15 Jun 2011 18:33:50 -0700 Message-Id: Cc: Jack Howarth To: gcc-patches List Mime-Version: 1.0 (Apple Message framework v1084) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 76.96.27.212 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org * mh-darwin: Turn off -pie on darwin11 and later. 2011-06-15 Mike Stump * mh-darwin: Turn off -pie on darwin11 and later. Index: mh-darwin =================================================================== --- mh-darwin (revision 174625) +++ mh-darwin (working copy) @@ -1,5 +1,7 @@ # The -mdynamic-no-pic ensures that the compiler executable is built without # position-independent-code -- the usual default on Darwin. This fix speeds # compiles by 3-5%. - BOOT_CFLAGS += -mdynamic-no-pic + +# Ensure we don't try and use -pie, as it is incompatible with pch. +BOOT_LDFLAGS=`case ${host} in *-*-darwin[1][1-9]*) echo -Wl,-no_pie ;; esac;`