pkgsrc-Changes archive

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

CVS commit: pkgsrc/mk



Module Name:    pkgsrc
Committed By:   ryoon
Date:           Sun Jul 30 21:47:44 UTC 2023

Modified Files:
        pkgsrc/mk: compiler.mk

Log Message:
mk: Pass RELRO check


To generate a diff of this commit:
cvs rdiff -u -r1.105 -r1.106 pkgsrc/mk/compiler.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.mk
diff -u pkgsrc/mk/compiler.mk:1.105 pkgsrc/mk/compiler.mk:1.106
--- pkgsrc/mk/compiler.mk:1.105 Sun Jul 30 15:09:25 2023
+++ pkgsrc/mk/compiler.mk       Sun Jul 30 21:47:44 2023
@@ -1,4 +1,4 @@
-# $NetBSD: compiler.mk,v 1.105 2023/07/30 15:09:25 jperkin Exp $
+# $NetBSD: compiler.mk,v 1.106 2023/07/30 21:47:44 ryoon Exp $
 #
 # This Makefile fragment implements handling for supported C/C++/Fortran
 # compilers.
@@ -272,7 +272,8 @@ CWRAPPERS_PREPEND.cxx+=     ${_MKREPRO_CFLAG
 # Enable relocation read-only if the user has chosen to and the compiler
 # supports it.
 #
-.if ${_PKGSRC_USE_RELRO} == "yes" && defined(_RELRO_LDFLAGS)
+.if (${_PKGSRC_USE_RELRO} == "partial" || ${_PKGSRC_USE_RELRO} == "full") \
+     && defined(_RELRO_LDFLAGS)
 LDFLAGS+=              ${_RELRO_LDFLAGS}
 _WRAP_EXTRA_ARGS.CC+=  ${_RELRO_LDFLAGS}
 _WRAP_EXTRA_ARGS.CXX+= ${_RELRO_LDFLAGS}



Home | Main Index | Thread Index | Old Index