public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [hurd, commited] mach: Fix spurious inclusion of stack_chk_fail_local in libmachuser.a
@ 2021-12-14  0:04 Samuel Thibault
  0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2021-12-14  0:04 UTC (permalink / raw)
  To: libc-alpha; +Cc: Samuel Thibault, commit-hurd

When linking programs statically, stack_chk_fail_local already comes
from libc_nonshared, so we don't need it in lib{mach,hurd}user.a.
---
 mach/Machrules | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mach/Machrules b/mach/Machrules
index 5839378009..ebb0fabd7a 100644
--- a/mach/Machrules
+++ b/mach/Machrules
@@ -223,6 +223,7 @@ endif
 ifdef interface-library
 
 $(interface-library)-routines = $(interface-routines) stack_chk_fail_local
+$(interface-library)-shared-only-routines = stack_chk_fail_local
 extra-libs += $(interface-library)
 extra-libs-others += $(interface-library)
 
-- 
2.33.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-14  0:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-14  0:04 [hurd, commited] mach: Fix spurious inclusion of stack_chk_fail_local in libmachuser.a Samuel Thibault

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).