Hi Thomas, > Like this? > > > libgcc/ > config.host: Use i386/linux-unwind.h only for *-*-linux*. > > --- > libgcc/config.host | 10 ++++++++-- > 1 files changed, 8 insertions(+), 2 deletions(-) > > diff --git a/libgcc/config.host b/libgcc/config.host > index 326ce91..1d5b887 100644 > --- a/libgcc/config.host > +++ b/libgcc/config.host > @@ -354,12 +354,18 @@ i[34567]86-*-openbsd*) > i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu > | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu) > extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o > crtfastmath.o" > tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm" > - md_unwind_header=i386/linux-unwind.h > + case $host in > + *-*-linux*) > + md_unwind_header=i386/linux-unwind.h;; > + esac > ;; > x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu) > extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o > crtfastmath.o" > tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm" > - md_unwind_header=i386/linux-unwind.h > + case $host in > + *-*-linux*) > + md_unwind_header=i386/linux-unwind.h;; > + esac
Instead of nested cases, I'd rather use one i[34567]86-*-linux* case and another for the rest, duplicating extra_parts and tmake_file. Same for x86_64-*-linux* vs. the rest. But that's just me. Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University