pkgsrc-Changes archive

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

CVS commit: pkgsrc/mk/compiler



Module Name:    pkgsrc
Committed By:   nia
Date:           Wed Dec 22 10:14:27 UTC 2021

Modified Files:
        pkgsrc/mk/compiler: gcc.mk

Log Message:
mk: Set the default page size when compiling with RELRO with GCC on
NetBSD/mips.

PR pkg/56559


To generate a diff of this commit:
cvs rdiff -u -r1.233 -r1.234 pkgsrc/mk/compiler/gcc.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/compiler/gcc.mk
diff -u pkgsrc/mk/compiler/gcc.mk:1.233 pkgsrc/mk/compiler/gcc.mk:1.234
--- pkgsrc/mk/compiler/gcc.mk:1.233     Sun Dec 19 11:55:29 2021
+++ pkgsrc/mk/compiler/gcc.mk   Wed Dec 22 10:14:27 2021
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.233 2021/12/19 11:55:29 nia Exp $
+# $NetBSD: gcc.mk,v 1.234 2021/12/22 10:14:27 nia Exp $
 #
 # This is the compiler definition for the GNU Compiler Collection.
 #
@@ -393,6 +393,10 @@ _RELRO_LDFLAGS=            -Wl,-zrelro -Wl,-znow
 _RELRO_LDFLAGS=                -Wl,-zrelro
 .endif
 
+.if !empty(_RELRO_LDFLAGS) && !empty(MACHINE_PLATFORM:MNetBSD-*-*mips*)
+_RELRO_LDFLAGS+=       -Wl,-z,common-page-size=0x10000
+.endif
+
 _STACK_CHECK_CFLAGS=   -fstack-check
 
 .if ${_PKGSRC_USE_STACK_CHECK} == "yes"



Home | Main Index | Thread Index | Old Index