Source-Changes-HG archive

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

[src/trunk]: src/sys/modules/sodium Don't define HAVE_TI_MODE if we don't hav...



details:   https://anonhg.NetBSD.org/src/rev/ffeb0df31ce2
branches:  trunk
changeset: 1022992:ffeb0df31ce2
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Aug 18 09:34:45 2021 +0000

description:
Don't define HAVE_TI_MODE if we don't have it.

diffstat:

 sys/modules/sodium/Makefile.sodmod |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 3be9693b43f3 -r ffeb0df31ce2 sys/modules/sodium/Makefile.sodmod
--- a/sys/modules/sodium/Makefile.sodmod        Wed Aug 18 09:18:09 2021 +0000
+++ b/sys/modules/sodium/Makefile.sodmod        Wed Aug 18 09:34:45 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.sodmod,v 1.1 2021/08/17 17:29:20 christos Exp $
+#      $NetBSD: Makefile.sodmod,v 1.2 2021/08/18 09:34:45 christos Exp $
 
 SODIUMDIR=     ${S}/external/isc/libsodium
 SODIUMSRCDIR=  ${SODIUMDIR}/dist/src/libsodium
@@ -49,5 +49,8 @@
 CWARNFLAGS+=   -Wno-unused-function
 CWARNFLAGS+=   -Wno-unused-variable
 
-CPPFLAGS+=     -DHAVE_TI_MODE -I${SODIUMDIR}/include 
+.if ${MACHINE_CPU} == "x86_64"
+CPPFLAGS+=     -DHAVE_TI_MODE
+.endif
+CPPFLAGS+=     -I${SODIUMDIR}/include 
 CPPFLAGS+=     -I${SODIUMDIR}/dist/src/libsodium/include/sodium



Home | Main Index | Thread Index | Old Index