diff options
author | Mike Stump <mrs@apple.com> | 2007-02-27 20:47:55 +0000 |
---|---|---|
committer | Mike Stump <mrs@gcc.gnu.org> | 2007-02-27 20:47:55 +0000 |
commit | 3b4141468342aa431ce55ca8f45c0ba20603302f (patch) | |
tree | 19bfb76cac957e046aaf6ca7595f0e01b5e3142e | |
parent | f686ec0522f54254bd604ac9fc751f0b1f906150 (diff) | |
download | gcc-3b4141468342aa431ce55ca8f45c0ba20603302f.zip gcc-3b4141468342aa431ce55ca8f45c0ba20603302f.tar.gz gcc-3b4141468342aa431ce55ca8f45c0ba20603302f.tar.bz2 |
darwin-crt3.c: Avoid compilation when compiling for a kext multilib.
* config/darwin-crt3.c: Avoid compilation when compiling for a
kext multilib.
From-SVN: r122385
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/darwin-crt3.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e154b5c..31a40de 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-02-27 Mike Stump <mrs@apple.com> + + * config/darwin-crt3.c: Avoid compilation when compiling for a + kext multilib. + 2007-02-27 Joseph Myers <joseph@codesourcery.com> * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define diff --git a/gcc/config/darwin-crt3.c b/gcc/config/darwin-crt3.c index 65b7663..ac5e039 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__ */ |