Skip to content

Commit

Permalink
libc: don't directly link libsys
Browse files Browse the repository at this point in the history
It is sufficent to add it as a filter.

Reported by:	kib
Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D43781
  • Loading branch information
brooksdavis committed Feb 7, 2024
1 parent b8afdda commit 49076f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion lib/libc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ CFLAGS+= -ftls-model=initial-exec
#
LDFLAGS+= -nodefaultlibs
LIBADD+= compiler_rt
LIBADD+= sys

LDFLAGS+=-Wl,--auxiliary,libsys.so.7

Expand Down
2 changes: 1 addition & 1 deletion share/mk/src.libnames.mk
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ _DP_xo= util
_DP_ztest= geom m nvpair umem zpool pthread avl zfs_core spl zutil zfs uutil icp
# The libc dependencies are not strictly needed but are defined to make the
# assert happy.
_DP_c= sys compiler_rt
_DP_c= compiler_rt
# Use libssp_nonshared only on i386 and power*. Other archs emit direct calls
# to __stack_chk_fail, not __stack_chk_fail_local provided by libssp_nonshared.
.if ${MK_SSP} != "no" && \
Expand Down

0 comments on commit 49076f3

Please sign in to comment.