diff mbox series

[hurd,commited] mach: Fix spurious inclusion of stack_chk_fail_local in libmachuser.a

Message ID 20211214000425.1902677-1-samuel.thibault@ens-lyon.org
State New
Headers show
Series [hurd,commited] mach: Fix spurious inclusion of stack_chk_fail_local in libmachuser.a | expand

Commit Message

Samuel Thibault Dec. 14, 2021, 12:04 a.m. UTC
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 mbox series

Patch

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)