From 9bf47cd9f3217cf605d9b3f9187287585ac4fd54 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 5 Jun 2020 13:58:11 -0400 Subject: [PATCH] make KOKKOS library compilation compatible with mode=shared --- lib/kokkos/Makefile.kokkos | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/kokkos/Makefile.kokkos b/lib/kokkos/Makefile.kokkos index dc53de0a12..a9478c6e09 100644 --- a/lib/kokkos/Makefile.kokkos +++ b/lib/kokkos/Makefile.kokkos @@ -4,7 +4,11 @@ ifndef KOKKOS_PATH KOKKOS_PATH=../../lib/kokkos endif + CXXFLAGS=$(CCFLAGS) +ifeq ($(mode),shared) +CXXFLAGS += $(SHFLAGS) +endif KOKKOS_VERSION_MAJOR = 3 KOKKOS_VERSION_MINOR = 1