app/test: fix resource creation with objcopy on FreeBSD
authorJan Viktorin <viktorin@rehivetech.com>
Fri, 17 Jun 2016 12:52:47 +0000 (14:52 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 17 Jun 2016 13:29:55 +0000 (15:29 +0200)
commit1e9e0a6270c8ab1c81008927e8577e6a0629965f
tree7dcf0810f82c53069d341f18313d9338fd647a8f
parent1eec9aa301c9e36e919fb9a9fe232c7e7db613a3
app/test: fix resource creation with objcopy on FreeBSD

Using of the /dev/stdin generates a warning when compiling on FreeBSD:

 objcopy: Warning: '/dev/stdin' is not an ordinary file
 app/test/Makefile:78: recipe for target 'test_resource_c.res.o' failed
 # ls -l /dev/stdin
 lrwxr-xr-x  1 root  wheel  4 Jun 17 12:24 /dev/stdin -> fd/0

Replace /dev/stdin by a temporary file.

Reported-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Signed-off-by: Jan Viktorin <viktorin@rehivetech.com>
Tested-by: Thomas Monjalon <thomas.monjalon@6wind.com>
app/test/Makefile