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: [PATCH] Configure i386-linux-newlib


On 3/21/06, Jeff Johnston <jjohnstn@redhat.com> wrote:
> Shaun Jackman wrote:
...
> > Will you submit this patch to the top-level on my behalf, or should I
> > cc this patch to someone else?
>
> It makes sense for you to do it - to answer any questions/issues.  You
> need to send the top-level parts to dj@redhat.com and aoliva@redhat.com
> who maintain the top-level configuration files for sourceware.

This patch adds support for other libc besides glibc by replacing
       linux-gnu*)
with
       linux-gnu*|linux-dietlibc*|linux-newlib*|linux-uclibc*)

I'm particularly interested in the newlib support, but since dietlibc
and uclibc have already made their way into the top-level config.guess
and config.sub, we may as well aim for completeness.

Cheers,
Shaun

2006-03-20  Shaun Jackman  <sjackman@gmail.com>

	* configure.in: Always build newlib for i386-linux-newlib.
	* configure: Regenerate.
	* libtool.m4: Allow other libc besides glibc.
	* ltconfig: Ditto.

Index: configure.in
===================================================================
RCS file: /cvs/src/src/configure.in,v
retrieving revision 1.301
diff -u -r1.301 configure.in
--- configure.in	14 Mar 2006 16:10:08 -0000	1.301
+++ configure.in	21 Mar 2006 00:54:55 -0000
@@ -608,6 +608,10 @@
   i[[3456789]]86-*-coff | i[[3456789]]86-*-elf)
     noconfigdirs="$noconfigdirs ${libgcj}"
     ;;
+  i[[3456789]]86-*-linux*-newlib*)
+    # 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: libtool.m4
===================================================================
RCS file: /cvs/src/src/libtool.m4,v
retrieving revision 1.13
diff -u -r1.13 libtool.m4
--- libtool.m4	27 Dec 2005 16:37:57 -0000	1.13
+++ libtool.m4	21 Mar 2006 00:54:55 -0000
@@ -739,7 +739,7 @@
   ;;

 # This must be Linux ELF.
-linux-gnu*)
+linux-gnu*|linux-dietlibc*|linux-newlib*|linux-uclibc*)
   lt_cv_deplibs_check_method=pass_all
   ;;

Index: ltconfig
===================================================================
RCS file: /cvs/src/src/ltconfig,v
retrieving revision 1.23
diff -u -r1.23 ltconfig
--- ltconfig	16 Jul 2005 02:36:38 -0000	1.23
+++ ltconfig	21 Mar 2006 00:54:56 -0000
@@ -602,7 +602,7 @@

  # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
 case $host_os in
-linux-gnu*) ;;
+linux-gnu*|linux-dietlibc*|linux-newlib*|linux-uclibc*) ;;
  linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  esac

@@ -1247,7 +1247,7 @@
   ;;

 # This must be Linux ELF.
-linux-gnu*)
+linux-gnu*|linux-dietlibc*|linux-newlib*|linux-uclibc*)
   version_type=linux
   need_lib_prefix=no
   need_version=no

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