pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/mk/platform



Module Name:    pkgsrc
Committed By:   pho
Date:           Sun Jan 26 05:24:09 UTC 2025

Modified Files:
        pkgsrc/mk/platform: SunOS.mk

Log Message:
mk/platform/SunOS.mk: Don't run SSP check on OmniOS

The way mk/check/check-ssp-elf.awk checks if SSP is enabled is suboptimal
atm. It runs readelf(1) on ELF objects and sees if they have DT_NEEDED to
libssp. However, GCC on this platform no longer links objects with libssp
because its symbols have been moved to libc. They didn't remove libssp.so,
presumably for backwards compatibility, but it has no symbols at all.


To generate a diff of this commit:
cvs rdiff -u -r1.92 -r1.93 pkgsrc/mk/platform/SunOS.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mk/platform/SunOS.mk
diff -u pkgsrc/mk/platform/SunOS.mk:1.92 pkgsrc/mk/platform/SunOS.mk:1.93
--- pkgsrc/mk/platform/SunOS.mk:1.92    Sat Jan 25 18:16:01 2025
+++ pkgsrc/mk/platform/SunOS.mk Sun Jan 26 05:24:09 2025
@@ -1,4 +1,4 @@
-# $NetBSD: SunOS.mk,v 1.92 2025/01/25 18:16:01 pho Exp $
+# $NetBSD: SunOS.mk,v 1.93 2025/01/26 05:24:09 pho Exp $
 #
 # Variable definitions for the SunOS/Solaris operating system.
 
@@ -141,6 +141,11 @@ _OPSYS_SUPPORTS_MKTOOLS=   yes # Requires 
 _OPSYS_SUPPORTS_SSP?=          yes # Requires GCC
 _OPSYS_CAN_CHECK_SHLIBS=       yes # Requires readelf
 
+.if ${OS_VARIANT} == "OmniOS"
+# libssp doesn't get linked in because its symbols are in libc.
+_OPSYS_CAN_CHECK_SSP=          no
+.endif
+
 # The Solaris/illumos linker requires explicit library dependencies.
 OPSYS_EXPLICIT_LIBDEPS=                yes
 



Home | Main Index | Thread Index | Old Index