diff options
Diffstat (limited to 'gcc/crtstuff.c')
-rw-r--r-- | gcc/crtstuff.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c index 53dae7cddc2..c0a6ae02ffd 100644 --- a/gcc/crtstuff.c +++ b/gcc/crtstuff.c @@ -172,8 +172,10 @@ __do_global_dtors_aux (void) if (completed) return; - if (__dso_handle && __cxa_finalize) +#ifdef CRTSTUFFS_O + if (__cxa_finalize) __cxa_finalize (__dso_handle); +#endif while (*p) { |