[patch, libgfortran] Fix SPU link failures (Re: Set close-on-exec flag when opening files)
Tobias Burnus
tobias.burnus@physik.fu-berlin.de
Tue Mar 18 09:35:00 GMT 2014
Ulrich Weigand wrote:
> Janne Blomqvist wrote:
> > * io/unix.c (set_close_on_exec): New function.
>
> Since this patch, most Fortran tests fail on spu-elf since the system
> libraries do not support fcntl on the SPU.
>
> The patch below fixes this by using an autoconf check to verify
> fcntl is present before using it, as is already done for many
> other routines in io/unix.c.
>
> Tested on spu-elf, fixes the Fortran problems there.
> Also verified on an older powerpc64-linux build that we still
> use fcntl there.
>
> OK for mainline?
Looks good to me and it rather obvious.
Thanks for the patch!
Tobias
More information about the Fortran
mailing list