Jessica Clarke 877175a17a libc: Fix build on case-insensitive file systems
On case-insensitive file systems (most likely to be seen on macOS, where
it is the default), _Fork.o for the new POSIX _Fork function conflicts
with _fork.o for the PSEUDO file. This results in non-determinsitic
behaviour in terms of which ends up being present; if _Fork.o wins then
the build fails to link libc.so due to missing __sys_fork, and if
_fork.o wins then libc silently fails to include the implementation of
_Fork. A similar issue occurred in the past for C99's _Exit conflicting
with exit(2) and was fixed in cb1cb6a2a83f, so this adds a fix based on
that.

As a longer-term solution it might be better to instead make the
generated files use a different prefix that's less likely to conflict
with other things (such as __sys_foo.o given they always contain that)
but that's a rather more invasive change.

Fixes:	49ad342cc10c ("Add _Fork()")
Reviewed by:	kib
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D31895
2021-09-10 01:19:38 +01:00
..
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2021-05-13 09:53:08 +02:00
2021-01-02 19:57:58 -07:00
2021-01-08 13:15:56 +13:00
2021-01-02 19:57:58 -07:00
2021-01-02 19:57:58 -07:00
2020-12-11 00:26:49 +00:00
2020-09-29 18:13:54 +00:00
2020-04-12 21:23:19 +00:00
2019-12-04 16:56:11 +00:00
2018-07-10 22:00:20 +00:00
2017-02-28 23:42:47 +00:00
2021-01-08 13:15:56 +13:00
2017-02-28 23:42:47 +00:00
2019-12-04 16:56:11 +00:00
2019-12-04 16:56:11 +00:00
2019-12-04 16:56:11 +00:00
2017-06-23 18:06:20 +00:00
2019-12-04 16:56:11 +00:00
2017-02-28 23:42:47 +00:00
2019-12-04 16:56:11 +00:00
2017-02-28 23:42:47 +00:00
2020-10-09 19:12:44 +00:00
2020-09-09 18:07:13 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2021-07-28 09:35:09 -07:00
2021-05-13 09:53:08 +02:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2019-12-04 16:56:11 +00:00
2017-02-28 23:42:47 +00:00
2020-03-30 21:48:47 +00:00
2017-05-23 09:29:05 +00:00
2021-03-04 13:32:42 +01:00
2021-02-18 18:56:52 +01:00
2017-02-28 23:42:47 +00:00
2017-06-24 17:01:11 +00:00
2017-03-19 00:51:12 +00:00
2017-02-28 23:42:47 +00:00
2021-05-11 02:39:24 +03:00
2020-04-25 14:24:54 +00:00
2021-08-07 07:09:57 +08:00
2021-04-28 23:00:31 +12:00
2016-08-29 18:47:51 +00:00
2020-04-25 14:24:54 +00:00
2018-01-24 22:36:21 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2019-01-16 05:15:57 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2019-12-04 16:56:11 +00:00
2019-12-04 16:56:11 +00:00
2020-04-25 14:24:54 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2018-05-25 20:40:23 +00:00
2017-02-28 23:42:47 +00:00
2021-02-20 08:05:43 +00:00