aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorThomas Fitzsimmons <fitzsim@redhat.com>2002-05-01 20:42:00 +0000
committerThomas Fitzsimmons <fitzsim@redhat.com>2002-05-01 20:42:00 +0000
commitd9a0f9d87e7d790df4ae017a4f4e6afab468d5c4 (patch)
treee555aa8dc949227418ba2acd0804f4ba2d9410f1 /configure.in
parentfee93846d6479d234c97767d60dd2d0a95b9e5f1 (diff)
downloadnewlib-d9a0f9d87e7d790df4ae017a4f4e6afab468d5c4.zip
newlib-d9a0f9d87e7d790df4ae017a4f4e6afab468d5c4.tar.gz
newlib-d9a0f9d87e7d790df4ae017a4f4e6afab468d5c4.tar.bz2
* configure.in (noconfigdirs): Do not add target-newlib if
target == i[3456]86-*-linux*, and host == target.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in16
1 files changed, 15 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index b50ea1f..45492a1 100644
--- a/configure.in
+++ b/configure.in
@@ -806,6 +806,20 @@ case "${target}" in
# linux has rx in libc
skipdirs="$skipdirs target-librx"
;;
+ i[3456]86-*-linux*)
+ # This section makes it possible to build newlib natively on linux.
+ # If we are using a cross compiler then don't configure newlib.
+ if [ x${is_cross_compiler} != xno ] ; then
+ noconfigdirs="$noconfigdirs target-newlib"
+ fi
+ noconfigdirs="$noconfigdirs target-libgloss"
+ # If we are not using a cross compiler, do configure newlib.
+ # Note however, that newlib will only be configured in this situation
+ # if the --with-newlib option has been given, because otherwise
+ # 'target-newlib' will appear in skipdirs.
+ # linux has rx in libc
+ skipdirs="$skipdirs target-librx"
+ ;;
*-*-linux*)
noconfigdirs="$noconfigdirs target-newlib target-libgloss"
# linux has rx in libc
@@ -1506,7 +1520,7 @@ case " $skipdirs " in
fi
case "${target}-${is_cross_compiler}" in
- i[3456]86-pc-linux*-no)
+ i[3456]86-*-linux*-no)
# Here host == target, so we don't need to build gcc,
# so we don't want to discard standard headers.
FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`