]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: Makefile.in: add -fno-builtin-execve CFLAG when building exec.o
authorCorinna Vinschen <corinna@vinschen.de>
Wed, 26 Feb 2020 16:02:01 +0000 (17:02 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 26 Feb 2020 16:03:31 +0000 (17:03 +0100)
commit5f66c2c756c2b3b43e565e471c82ee4ed05a4adb
treee1da97cf14f741ea8fe218e13b7905ffa9a91f02
parent28382c97a5d5fd7366adbf7ce9445b1b4beb02a9
Cygwin: Makefile.in: add -fno-builtin-execve CFLAG when building exec.o

gcc-9.2.0 has an execve builtin which uses the nothrow attribute.
This results in an error when aliasing execve to _execve for newlib:

exec.cc:88:23: error: 'int _execve(const char*, char* const*, char*
const*)' specifies less restrictive attribute than its target
'int execve(const char*, char* const*, char* const*)': 'nothrow'
[-Werror=missing-attributes]
   88 | EXPORT_ALIAS (execve, _execve) /* For newlib */

Add the -fno-builtin-execve CFLAGS when building exec.o to override
the gcc builtin.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/Makefile.in
This page took 0.026367 seconds and 5 git commands to generate.