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:   thor
Date:           Sun Jun  1 16:17:15 UTC 2025

Added Files:
        pkgsrc/mk: openmp.mk

Log Message:
mk/openmk.mk: separate-out OpenMP logic

This centralizes the switch to choose the built-in openmp in gcc
or the separate library for clang. Packages should include this
instead of depending on the clang openmp lib directly.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/mk/openmp.mk

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

Added files:

Index: pkgsrc/mk/openmp.mk
diff -u /dev/null pkgsrc/mk/openmp.mk:1.1
--- /dev/null   Sun Jun  1 16:17:15 2025
+++ pkgsrc/mk/openmp.mk Sun Jun  1 16:17:15 2025
@@ -0,0 +1,9 @@
+# $NetBSD: openmp.mk,v 1.1 2025/06/01 16:17:15 thor Exp $
+#
+# This Makefile fragment is meant to be included by packages that use
+# OpenMP compiler extensions and may need an extra library package to
+# support that. GCC ships its own libgomp, clang pas it packaged separately.
+
+.if !empty(PKGSRC_COMPILER:M*clang*)
+.include "../../parallel/openmp/buildlink3.mk"
+.endif



Home | Main Index | Thread Index | Old Index