diff -ru debian.org/rules.defs debian/rules.defs
--- debian.org/rules.defs	2005-01-05 09:45:14.000000000 +0100
+++ debian/rules.defs	2005-01-05 10:48:02.000000000 +0100
@@ -12,6 +12,8 @@
 
 lib64		= lib64
 
+with_newlib:=yes
+
 # version of default gcc compiler (e.g. 3.3 or 3.4)
 BUILD_CC_VERSION:= $(shell gcc -dumpversion | sed 's/\([0-9]*\.[0-9]*\)\(.*\)/\1/')
 
@@ -210,6 +212,10 @@
   with_cxa_atexit := disabled for $(DEB_TARGET_GNU_SYSTEM)
 endif
 
+ifeq ($(with_newlib),yes)
+    with_cxa_atexit := disabled for newlib
+endif
+
 # Java --------------------
 # java converted for V3 C++ ABI for some archs
 ifeq ($(with_base_only),yes)
diff -ru debian.org/rules.unpack debian/rules.unpack
--- debian.org/rules.unpack	2005-01-05 09:35:44.000000000 +0100
+++ debian/rules.unpack	2005-01-05 09:57:58.000000000 +0100
@@ -50,6 +50,12 @@
 	  *)     false; \
 	esac
 	mv $(gcc_srcdir) $(srcdir)
+ifeq ($(with_newlib),yes)
+	tar xjf /usr/src/toolchain/newlib.tar.bz2 newlib-*/newlib
+	mv newlib-*/newlib $(srcdir)
+	rmdir newlib-*
+endif
+
 	echo "$(gcc_tarball) unpacked." > $@
 
 # ---------------------------------------------------------------------------
diff -ru debian.org/rules2 debian/rules2
--- debian.org/rules2	2004-12-27 11:22:05.000000000 +0100
+++ debian/rules2	2005-01-05 10:29:08.000000000 +0100
@@ -166,6 +166,10 @@
 	--target=$(TARGET_ALIAS)
 endif
 
+ifeq ($(with_newlib),yes)
+  CONFARGS += --with-newlib
+endif
+
 bootstrap_target = profiledbootstrap
 
 # no profiledbootstrap on the following architectures
