freebsd-dev/lib
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 cb1cb6a2a8, 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:	49ad342cc1 ("Add _Fork()")
Reviewed by:	kib
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D31895
2021-09-10 01:19:38 +01:00
..
atf
clang Add WITH_LLVM_BINUTILS to install LLVM binutils instead of Elftoolchain 2021-09-06 09:49:49 +01:00
csu Add arm64 ifunc support in static binaries 2021-08-23 13:39:09 +00:00
flua
geom geli(8): Do not report error on resize to the same size. 2021-08-18 17:11:03 -04:00
googletest googletest: Silence warnings about deprecated implicit copy constructors 2021-08-26 22:06:53 +02:00
lib9p
lib80211
libalias
libarchive libarchive: import changes from upstream 2021-08-23 03:07:36 +02:00
libauditd
libbe
libbearssl
libbegemot
libblacklist
libblocksruntime
libbluetooth
libbsdstat
libbsm
libbsnmp
libbz2
libc libc: Fix build on case-insensitive file systems 2021-09-10 01:19:38 +01:00
libc_nonshared
libc++
libc++experimental
libcalendar
libcam
libcapsicum
libcasper libcasper(3): Correct some warnings found by mandoc 2021-07-12 06:16:55 +02:00
libclang_rt Prefer MK_SSP=no to SSP_CFLAGS= 2021-08-04 15:23:22 -03:00
libcom_err pkgbase: Create a FreeBSD-kerberos package 2021-09-07 10:23:14 +02:00
libcompat
libcompiler_rt compiler-rt: add aarch64 init function for LSE atomics 2021-09-06 21:24:01 +02:00
libcrypt
libcuse
libcxxrt
libdevctl
libdevdctl
libdevinfo
libdevstat
libdl
libdpv
libdwarf
libedit
libefivar pkgbase: Remove libefivar package and add a efi-tools one 2021-09-07 10:24:21 +02:00
libelf
libelftc
libevent1
libexecinfo
libexpat pkgbase: Put libbsdxml in FreeBSD-runtime 2021-09-07 10:22:45 +02:00
libfetch fetch: do not confuse capacity and length 2021-09-09 16:51:26 +02:00
libfigpar
libgcc_eh Add build system support for ASAN+UBSAN instrumentation 2021-08-02 14:33:24 +01:00
libgcc_s Add build system support for ASAN+UBSAN instrumentation 2021-08-02 14:33:24 +01:00
libgeom [skip ci] correct a few SPDX license tags 2021-07-07 13:52:20 -06:00
libgpio
libgssapi
libiconv_modules
libifconfig
libipsec ipsec_set_policy(3): fix sentence 2021-08-10 03:46:35 +03:00
libipt
libjail
libkiconv
libkvm
libldns
liblua
liblutok
liblzma
libmagic
libmd Revert "Disable the accelerated arm64 sha25 in static libraries" 2021-08-30 10:36:43 +01:00
libmemstat
libmilter
libmp
libmt
libnetbsd
libnetgraph
libnetmap
libngatm
libnv
libomp
libopenbsd
libopencsd
libopie
libpam openssh: update to OpenSSH v8.7p1 2021-09-07 21:05:51 -04:00
libpathconv
libpcap
libpe
libpfctl libpfctl: Implement DIOCGETSTATUS wrappers 2021-08-29 14:59:38 +02:00
libpjdlog
libpmc pmc(3): remove Pentium-related man pages and references 2021-08-10 17:19:58 -03:00
libpmcstat
libproc
libprocstat
libradius
libregex pkgbase: Remove FreeBSD-libregex package 2021-09-07 10:23:53 +02:00
librpcsec_gss
librpcsvc
librss
librt Fix aio_readv(2), aio_writev(2) with SIGEV_THREAD. 2021-08-22 23:49:23 +12:00
librtld_db
libsbuf
libsdp
libsecureboot libsecureboot: define SOPEN_MAX 2021-08-10 22:46:40 +03:00
libsm
libsmb
libsmdb
libsmutil
libsqlite3
libssp
libssp_nonshared
libstats
libstdbuf
libstdthreads
libsysdecode
libtacplus
libtelnet
libthr libthr: work around an ASAN false-positive 2021-08-02 14:33:24 +01:00
libthread_db
libucl
libufs
libugidfw
libulog
libunbound
libusb
libusbhid
libutil
libveriexec
libvgl
libvmmapi libvmmapi: Fix warnings and stop overridding WARNS 2021-07-26 16:40:16 -04:00
libwrap
libxo add blank line between variables (testing git commit) 2021-08-04 16:56:55 -04:00
liby
libypclnt
libz
libzstd
msun Fix powf(). 2021-09-06 18:51:31 +01:00
ncurses
ofed
tests
Makefile Add WITH_LLVM_BINUTILS to install LLVM binutils instead of Elftoolchain 2021-09-06 09:49:49 +01:00
Makefile.inc