aboutsummaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2023-11-15 23:35:16 +0000
committerBrooks Davis <brooks@FreeBSD.org>2024-02-05 20:34:56 +0000
commit0d4f7723bc43e06ca22025740cb826a7f282ea11 (patch)
tree72342e493328e5a32427a376a330dfc32292ffac /Makefile.inc1
parentef9871c6205c158b16ee23702d2b8c043debc51a (diff)
downloadsrc-0d4f7723bc43e06ca22025740cb826a7f282ea11.tar.gz
src-0d4f7723bc43e06ca22025740cb826a7f282ea11.zip
libc: link libsys as a auxiliary filter library
At runtime, when rtld loads libc it will also load libsys. For each symbol that is present in both, the libsys one will override the libc one. It continues to be the case that program need only link against libc (usually implicitly). The linkage to libsys is automatic. Reviewed by: kib, emaste, imp Pull Request: https://github.com/freebsd/freebsd-src/pull/908
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc12
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 7a9917fd8a74..f97e53cc7f9a 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -3125,10 +3125,12 @@ _startup_libs= lib/csu
_startup_libs+= lib/libc
_startup_libs+= lib/libc_nonshared
_startup_libs+= lib/libcxxrt
+_startup_libs+= lib/libsys
_prereq_libs+= lib/libgcc_eh lib/libgcc_s
_startup_libs+= lib/libgcc_eh lib/libgcc_s
+lib/libc__L: lib/libsys__L
lib/libgcc_s__L: lib/libc__L
lib/libgcc_s__L: lib/libc_nonshared__L
lib/libcxxrt__L: lib/libgcc_s__L