X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/b0d623f7f2ae71ed96e60569f61f9a9a27016e80..bd504ef0e0b883cdd7917b73b3574eb9ce669905:/libkern/kmod/cplus_stop.c diff --git a/libkern/kmod/cplus_stop.c b/libkern/kmod/cplus_stop.c index b4ce5236a..2b2bdc688 100644 --- a/libkern/kmod/cplus_stop.c +++ b/libkern/kmod/cplus_stop.c @@ -42,7 +42,12 @@ The linkline must look like this. *.o -lkmodc++ kmod_info.o -lkmod */ -#if __i386__ || __ppc__ + +/* The following preprocessor test must match exactly with the architectures + * that define the CONFIG_STATIC_CPPINIT config option. + */ +#if __i386__ + #include asm(".destructors_used = 0");