From e9b20616a057e5c3d49a70308066bfc39876810c Mon Sep 17 00:00:00 2001 From: mrs Date: Tue, 27 Feb 2007 20:47:55 +0000 Subject: [PATCH] * config/darwin-crt3.c: Avoid compilation when compiling for a kext multilib. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122385 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/config/darwin-crt3.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e154b5c128e6..31a40de2e784 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-02-27 Mike Stump + + * config/darwin-crt3.c: Avoid compilation when compiling for a + kext multilib. + 2007-02-27 Joseph Myers * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define diff --git a/gcc/config/darwin-crt3.c b/gcc/config/darwin-crt3.c index 65b766369eeb..ac5e0398f58a 100644 --- a/gcc/config/darwin-crt3.c +++ b/gcc/config/darwin-crt3.c @@ -27,6 +27,9 @@ along with GCC; see the file COPYING. If not, write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +/* Don't do anything if we are compiling for a kext multilib. */ +#ifdef __PIC__ + /* It is incorrect to include config.h here, because this file is being compiled for the target, and hence definitions concerning only the host do not apply. */ @@ -530,3 +533,5 @@ atexit (atexit_callback func) r.has_arg = 0; return atexit_common (&r, &__dso_handle); } + +#endif /* __PIC__ */ -- 2.47.3