binutils-gdb/sim
Joel Brobecker 96987c2b7f Work around Solaris bourne shell limitation when building the sim
Building the sim on a sparc-solaris 2.8 machine fails when configured
with no extra sim hardware:

> for hw in  ; do \
>         echo "extern const struct hw_descriptor
>         dv_${hw}_descriptor[];" ; \
>       done >> tmp-hw.h
> echo 'const char version[] = "'"`sed q
> /[...]/../../gdb/version.in`"'";'
> >> version.c-tmp
> /bin/sh: -c: line 1: syntax error near unexpected token `;'
> /bin/sh: -c: line 1: `for hw in  ; do \'
> make[3]: *** [hw-config.h] Error 2

The same thing happens with the version of bash that we got from
Sun as well (which is very old: 2.03.0(1)-release).

The problems comes from the fact that both shells are buggy, and
reject the following script:

    for hw in ; do
      [...]
    done

The above is what sim/common/Makefile.in tries to execute when
generating hw-config.h.

In order to allow users to build out of the box on these machines,
this patch works around this bug.  It does rely on the fact that
none of the tokens in SIM_HW contain whitespaces.

sim/common/ChangeLog:

        * Make-common.in (hw-config.h): Work around bug in Solaris 2.8
        system bourne shell.
2011-12-19 04:33:39 +00:00
..
arm sim: generate build dependencies on the fly 2011-12-03 18:23:51 +00:00
avr sim: generate build dependencies on the fly 2011-12-03 18:23:51 +00:00
bfin sim: bfin: lookup target strings when tracing system calls 2011-12-03 19:05:15 +00:00
common Work around Solaris bourne shell limitation when building the sim 2011-12-19 04:33:39 +00:00
cr16 sim: generate build dependencies on the fly 2011-12-03 18:23:51 +00:00
cris sim: generate build dependencies on the fly 2011-12-03 18:23:51 +00:00
d10v sim: generate build dependencies on the fly 2011-12-03 18:23:51 +00:00
erc32 sim: generate build dependencies on the fly 2011-12-03 18:23:51 +00:00
frv sim: generate build dependencies on the fly 2011-12-03 18:23:51 +00:00
h8300 sim: generate build dependencies on the fly 2011-12-03 18:23:51 +00:00
igen sim: rename common/aclocal.m4 to common/acinclude.m4 2011-10-18 00:31:00 +00:00
iq2000 sim: generate build dependencies on the fly 2011-12-03 18:23:51 +00:00
lm32 sim: generate build dependencies on the fly 2011-12-03 18:23:51 +00:00
m32c sim: generate build dependencies on the fly 2011-12-03 18:23:51 +00:00
m32r sim: generate build dependencies on the fly 2011-12-03 18:23:51 +00:00
m68hc11 sim: generate build dependencies on the fly 2011-12-03 18:23:51 +00:00
mcore sim: generate build dependencies on the fly 2011-12-03 18:23:51 +00:00
microblaze sim: generate build dependencies on the fly 2011-12-03 18:23:51 +00:00
mips sim: generate build dependencies on the fly 2011-12-03 18:23:51 +00:00
mn10300 sim: generate build dependencies on the fly 2011-12-03 18:23:51 +00:00
moxie sim: generate build dependencies on the fly 2011-12-03 18:23:51 +00:00
ppc 2011-02-11 Ben Golding <ben_golding@yahoo.co.uk> 2011-11-03 15:48:17 +00:00
rl78 sim: generate build dependencies on the fly 2011-12-03 18:23:51 +00:00
rx sim: generate build dependencies on the fly 2011-12-03 18:23:51 +00:00
sh sim: generate build dependencies on the fly 2011-12-03 18:23:51 +00:00
sh64 sim: generate build dependencies on the fly 2011-12-03 18:23:51 +00:00
testsuite sim: testsuite: regenerate configure 2011-10-18 00:16:14 +00:00
v850 sim: generate build dependencies on the fly 2011-12-03 18:23:51 +00:00
.gitignore sim: ignore generated hw-config.h 2011-01-05 17:17:44 +00:00
ChangeLog Record Mike Frysinger as a sim Global Maintainer. 2011-11-29 06:25:05 +00:00
MAINTAINERS Record Mike Frysinger as a sim Global Maintainer. 2011-11-29 06:25:05 +00:00
Makefile.in run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
README-HACKING sim: add more hacking notes 2010-04-12 21:44:46 +00:00
configure [sim] 2011-11-29 03:49:09 +00:00
configure.ac sim: unify target->subdir handling for default tests 2010-04-26 16:23:24 +00:00
configure.tgt [sim] 2011-11-29 03:49:09 +00:00