Commit 3b414146 by Mike Stump Committed by Mike Stump

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
parent f686ec05
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> 2007-02-27 Joseph Myers <joseph@codesourcery.com>
* Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
......
...@@ -27,6 +27,9 @@ along with GCC; see the file COPYING. If not, write to the Free ...@@ -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 Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA. */ 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 /* It is incorrect to include config.h here, because this file is being
compiled for the target, and hence definitions concerning only the host compiled for the target, and hence definitions concerning only the host
do not apply. */ do not apply. */
...@@ -530,3 +533,5 @@ atexit (atexit_callback func) ...@@ -530,3 +533,5 @@ atexit (atexit_callback func)
r.has_arg = 0; r.has_arg = 0;
return atexit_common (&r, &__dso_handle); return atexit_common (&r, &__dso_handle);
} }
#endif /* __PIC__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment