From e7d337f6c41c3c357edfb74b329877d1b93e7cb1 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Wed, 27 Feb 2008 02:25:49 +0000 Subject: [PATCH] Fixed gcc to explicitely disable __cxa_atexit for i386 --- base/gcc/gcc.conf | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/base/gcc/gcc.conf b/base/gcc/gcc.conf index c666dba45..c2a1c293c 100644 --- a/base/gcc/gcc.conf +++ b/base/gcc/gcc.conf @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../gcc/gcc.conf -# Copyright (C) 2006 - 2007 The OpenSDE Project +# Copyright (C) 2006 - 2008 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # # More information can be found in the files COPYING and README. @@ -58,7 +58,11 @@ configscript="../configure" # See http://gcc.gnu.org/gcc-3.2/c++-abi.html # and http://www.codesourcery.com/cxx-abi/. -var_append confopt ' ' "--enable-__cxa_atexit" +if [ "$arch_machine" != "i386" ]; then + var_append confopt ' ' "--enable-__cxa_atexit" +else + var_append confopt ' ' "--disable-__cxa_atexit" +fi # we might build a SVN or prereleases, disable checking var_append confopt ' ' '--disable-checking'