#!/bin/bash
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/files/crossdev,v 1.87 2007/02/17 13:50:04 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/files/crossdev,v 1.88 2007/02/22 00:52:34 vapier Exp $
cd /
umask 0022 #159111
case ${CTARGET} in
# Normal Linux host, just diff libc
*-dietlibc) LPKG="dietlibc";;
- *-elf) LPKG="newlib";;
*-gnu*) LPKG="glibc";;
*-klibc) LPKG="klibc";;
- *-newlib) LPKG="newlib";;
*-uclibc*) LPKG="uclibc";;
*-uclinux) LPKG="uclibc";;
+ # Bare metal targets
+ *-newlib|*-elf)
+ LPKG="newlib"
+ KPKG="[none]"
+ STAGE=${STAGE_LIBC}
+ ;;
+
# Now for the BSDs ...
*-freebsd*)
LCAT="sys-freebsd" LPKG="freebsd-lib"