From 9640d09c1e37711deae45c84e4b7ba1c68326005 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Wed, 30 Oct 2019 20:48:57 +0100 Subject: [PATCH] Fix compilation with libcuda Fixes #3320 --- Makefile.am | 4 ++-- configure.ac | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index 9e2687a6..f00871b3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1017,8 +1017,8 @@ endif if BUILD_PLUGIN_GPU_NVIDIA pkglib_LTLIBRARIES += gpu_nvidia.la gpu_nvidia_la_SOURCES = src/gpu_nvidia.c -gpu_nvidia_la_CPPFLAGS = $(AM_CPPFLAGS) $(BUILD_WITH_GPU_CUDA_CPPFLAGS) -gpu_nvidia_la_LDFLAGS = $(PLUGIN_LDFLAGS) $(BUILD_WITH_GPU_CUDA_LDFLAGS) +gpu_nvidia_la_CPPFLAGS = $(AM_CPPFLAGS) $(PLUGIN_CPPFLAGS) $(BUILD_WITH_CUDA_CPPFLAGS) +gpu_nvidia_la_LDFLAGS = $(PLUGIN_LDFLAGS) $(BUILD_WITH_CUDA_LDFLAGS) gpu_nvidia_la_LIBADD = $(BUILD_WITH_CUDA_LIBS) endif diff --git a/configure.ac b/configure.ac index a1ce009a..82016b3c 100644 --- a/configure.ac +++ b/configure.ac @@ -2096,8 +2096,8 @@ if test "x$with_cuda" = "xyes"; then fi if test "x$with_cuda" = "xyes"; then - BUILD_WITH_CUDA_CPPFLAGS="$CUDA_CPPFLAGS" - BUILD_WITH_CUDA_LDFLAGS="$CUDA_LDFLAGS" + BUILD_WITH_CUDA_CPPFLAGS="$with_cuda_cppflags" + BUILD_WITH_CUDA_LDFLAGS="$with_cuda_ldflags" BUILD_WITH_CUDA_LIBS="-lnvidia-ml" fi -- 2.11.0