#! /bin/sh
# i386-gnu-gcc - cross-compile for i386-gnu using /usr/bin/gcc

# Make sure we find shared library dependencies without hardcoding them.
rpath_link="-Wl,-rpath-link=/usr/i386-gnu/lib"
for arg
do
  case "$arg" in
  -c | -S | -E)
    # No linking to do, so avoid gratuitous warnings.
    rpath_link=
    ;;
  esac
done
exec /usr/bin/gcc -b i386-gnu -nostdinc \
	-isystem /usr/lib/gcc-lib/i386-gnu/2.7.2.3/include \
	-isystem /usr/i386-gnu/include \
	$rpath_link ${1+"$@"}
