swapnils3112 / google-concurrency-library

Automatically exported from code.google.com/p/google-concurrency-library
0 stars 0 forks source link

Make include/atomic.h fails if /bin/sh is dash #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. make include/atomic.h

What is the expected output? What do you see instead?

Expected output is:
/bin/bash util/atomic.sh > include/atomic.h

Experienced output is:
/bin/sh util/atomic.sh > include/atomic.h
util/atomic.sh: 665: Bad substitution
make: *** [include/atomic.h] Error 2

What version of the product are you using? On what operating system?
changset 48:67210bc745d8 running on Ubuntu 10.10

Please provide any additional information below.

Modifying the commands for target include/atomic.h to:
-   sh util/atomic.sh > include/atomic.h
+   $(SHELL) util/atomic.sh > include/atomic.h

and then running the following works:
make include/atomic.h SHELL=/bin/bash

Original issue reported on code.google.com by aefal...@gmail.com on 24 Nov 2010 at 10:19

GoogleCodeExporter commented 9 years ago

Original comment by alasdair.mackintosh on 15 Mar 2011 at 3:07