pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Patch for openblas variants
Hello!
The package-config files installed for the various openblas_* variants pass the incorrect link lines. The following patch seems to help (at least with openblas_pthreads/openblas_openmp)
Best,
-Matthew
diff --git a/math/openblas/Makefile.common b/math/openblas/Makefile.common
index 78ac13ec745..9b810e51cbd 100644
--- a/math/openblas/Makefile.common
+++ b/math/openblas/Makefile.common
@@ -97,6 +97,11 @@ BENCHMARK_ENV= OMP_NUM_THREADS=${BENCHMARK_MAXTHREADS}
MAKE_FLAGS+= INTERFACE64=1 LIBSONAMEBASE=openblas64
.endif
+SUBST_CLASSES+= pkgconfig
+SUBST_STAGE.pkgconfig= pre-build
+SUBST_SED.pkgconfig+= -e "s+openblas+${OPENBLAS_VARIANT}+g"
+SUBST_FILES.pkgconfig+= openblas.pc.in
+
SUBST_CLASSES+= threads
SUBST_STAGE.threads= pre-build
SUBST_SED.threads+= -e "s+OPENBLAS_NUM_THREADS+OMP_NUM_THREADS+g"
--
matthewd%fastmail.us@localhost
Home |
Main Index |
Thread Index |
Old Index