Subject: Re: DEFAULT_USE_CXA_ATEXIT gets lost in gcc configuration
To: Nick Hudson <nick.hudson@dsl.pipex.com>
From: Matthias Drochner <M.Drochner@fz-juelich.de>
List: tech-toolchain
Date: 09/19/2007 18:01:44
This is a multipart MIME message.

--==_Exmh_10205938442190
Content-Type: text/plain; charset=us-ascii


nick.hudson@dsl.pipex.com said:
> The problem is that the target doesn't match 
[...]
> *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)

Ah thanks - how could I miss that...
The appended patch helps for me -- OK to commit
or would you prefer to patch config.gcc?

best regards
Matthias





-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich

Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDirig'in Baerbel Brumme-Bothe
Vorstand: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft (stellv. 
Vorsitzender)
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------

--==_Exmh_10205938442190
Content-Type: text/plain ; name="gccmake"; charset=us-ascii
Content-Description: gccmake
Content-Disposition: attachment; filename="gccmake"

#
# old_revision [61d723bdb425fc599e6ba5df65769ebf3d8132c4]
#
# patch "tools/gcc/Makefile"
#  from [d114f00f33253296b875d59ae3c06c5ef37c908e]
#    to [f729751d38e33e86a215043cc7dcc2df12b190ca]
#
============================================================
--- tools/gcc/Makefile	d114f00f33253296b875d59ae3c06c5ef37c908e
+++ tools/gcc/Makefile	f729751d38e33e86a215043cc7dcc2df12b190ca
@@ -16,7 +16,8 @@ CONFIGURE_ARGS=	--target=${MACHINE_GNU_P
 		--enable-threads \
 		${VAX_CONFIGURE_ARGS} \
 		--program-transform-name="s,^,${MACHINE_GNU_PLATFORM}-," \
-		--enable-languages="${GCC_LANGUAGES}"
+		--enable-languages="${GCC_LANGUAGES}" \
+		--enable-__cxa_atexit
 
 MAKE_ARGS=	MACHINE= MAKEINFO=${TOOL_MAKEINFO:Q} \
 		LIBGCC= LIBGCC1= LIBGCC1_TEST= LIBGCC2= INSTALL_LIBGCC= \
@@ -76,7 +77,8 @@ native-gcc: .native/.configure_done
 			${VAX_CONFIGURE_ARGS} \
 			--build=`${.CURDIR}/../../gnu/dist/${MODULE}/config.guess` \
 			--host=${MACHINE_GNU_PLATFORM} \
-			--target=${MACHINE_GNU_PLATFORM}) && \
+			--target=${MACHINE_GNU_PLATFORM} \
+			--enable-__cxa_atexit) && \
 		(cd .native && ${MKNATIVE_ENV} ${BUILD_MAKE} all-build-libiberty)
 .if ${HAVE_GCC} == 4
 	PATH=${TOOLDIR}/bin:$$PATH; export PATH; \

--==_Exmh_10205938442190--