pkgsrc-Changes archive

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

CVS commit: pkgsrc/math/liblbfgs



Module Name:    pkgsrc
Committed By:   nros
Date:           Fri Nov 17 12:07:49 UTC 2023

Modified Files:
        pkgsrc/math/liblbfgs: options.mk

Log Message:
liblbfgs: only use sse2 on supported platforms
Make the sse2 option available only on i386 and
x86_64 where sse2 is possibly available.
Only make it the default option on x86_64 where
see2 is guaranteed to be available.
Should fix build on NetBSD arm.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 pkgsrc/math/liblbfgs/options.mk

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

Modified files:

Index: pkgsrc/math/liblbfgs/options.mk
diff -u pkgsrc/math/liblbfgs/options.mk:1.1.1.1 pkgsrc/math/liblbfgs/options.mk:1.2
--- pkgsrc/math/liblbfgs/options.mk:1.1.1.1     Wed Oct 29 23:10:29 2014
+++ pkgsrc/math/liblbfgs/options.mk     Fri Nov 17 12:07:49 2023
@@ -1,8 +1,15 @@
-# $NetBSD: options.mk,v 1.1.1.1 2014/10/29 23:10:29 cheusov Exp $
+# $NetBSD: options.mk,v 1.2 2023/11/17 12:07:49 nros Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.liblbfgs
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${MACHINE_ARCH} =="i386" || ${MACHINE_ARCH} == "x86_64"
 PKG_SUPPORTED_OPTIONS= liblbfgs-sse2
+.  if ${MACHINE_ARCH} == "x86_64"
 PKG_SUGGESTED_OPTIONS= liblbfgs-sse2
+.  endif
+.endif
 
 .include "../../mk/bsd.options.mk"
 



Home | Main Index | Thread Index | Old Index