This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Proposal and RFC: i386-pc-linux-newlib [PATCH]


My initial work to create an i386-pc-linux-newlib toolchain, which can
be compared to the i386-pc-linux-uclibc maintained by the buildroot
guys and the familiar i386-pc-linux-gnu toolchain, has been very
promising! Adding the target to the root config.sub and configure.in
was straight forward, and with only a minimum of fussing, built a
native newlib toolchain! I had to add /usr/include to the gcc specs
file by hand afterwards, but otherwise the toolchain is functional. I
would you like to see the following patch accepted. Since it's in the
root and not in newlib, who's responsible for applying the patch?

Thanks,
Shaun

2005-10-26  Shaun Jackman  <sjackman@gmail.com>

	* config.sub: Add support for an i[3456789]-pc-linux-newlib target.
	* configure.in: Ditto.

--- config.sub	14 Jul 2005 01:24:56 -0000	1.53
+++ config.sub	26 Oct 2005 21:10:08 -0000
@@ -119,7 +119,8 @@
 # Here we must recognize all the valid KERNEL-OS combinations.
 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
 case $maybe_os in
-  nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* |
uclinux-uclibc* | uclinux-gnu* | \
+  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
+  uclinux-uclibc* | uclinux-gnu* | \
   kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* |
os2-emx* | rtmk-nova*)
     os=-$maybe_os
     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
@@ -1181,7 +1182,7 @@
 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
 	      | -chorusos* | -chorusrdb* \
 	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
-	      | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* |
-mpeix* | -udk* \
+	      | -mingw32* | -linux-gnu* | -linux-uclibc* | -linux-newlib* |
-uxpv* | -beos* | -mpeix* | -udk* \
 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
 	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
 	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
--- configure.in	17 Oct 2005 12:54:34 -0000	1.289
+++ configure.in	26 Oct 2005 21:10:08 -0000
@@ -586,6 +586,11 @@
   i[[3456789]]86-*-coff | i[[3456789]]86-*-elf)
     noconfigdirs="$noconfigdirs ${libgcj}"
     ;;
+  i[[3456789]]86-*-linux-newlib*)
+    noconfigdirs="$noconfigdirs ${libgcj}"
+    # always build newlib.
+    skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
+    ;;
   i[[3456789]]86-*-linux*)
     # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
     # not build java stuff by default.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]