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:   pho
Date:           Wed Jan 19 16:06:43 UTC 2022

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

Log Message:
Emit a warning when PKGSRC_MKPIE==yes but PKGSRC_COMPILER==clang

Prior to this change PKGSRC_MKPIE was silently ignored when clang was chosen for
the compiler, i.e. executables were never built as PIE. This became an error
after introducing a post-build check for it.

Of course we should add a MKPIE support for clang, but for now we just emit a
warning. Otherwise we cannot build packages such as devel/gnustep-base which
requires clang to build.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 pkgsrc/mk/compiler/clang.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/clang.mk
diff -u pkgsrc/mk/compiler/clang.mk:1.32 pkgsrc/mk/compiler/clang.mk:1.33
--- pkgsrc/mk/compiler/clang.mk:1.32    Sun Dec 19 11:55:29 2021
+++ pkgsrc/mk/compiler/clang.mk Wed Jan 19 16:06:43 2022
@@ -1,4 +1,4 @@
-# $NetBSD: clang.mk,v 1.32 2021/12/19 11:55:29 nia Exp $
+# $NetBSD: clang.mk,v 1.33 2022/01/19 16:06:43 pho Exp $
 #
 # This is the compiler definition for the clang compiler.
 #
@@ -114,4 +114,9 @@ CWRAPPERS_PREPEND.cc+=      ${_NOERROR_IMPLIC
 _CXX_STD_FLAG.${_version_}?=   -std=${_version_}
 .endfor
 
+.if ${_PKGSRC_MKPIE} == "yes"
+WARNINGS+=             "[clang.mk] PKGSRC_MKPIE is currently not supported for clang"
+CHECK_PIE_SUPPORTED=   no
+.endif
+
 .endif # COMPILER_CLANG_MK



Home | Main Index | Thread Index | Old Index