Changed name of LDFLAGS to avoid potential conflicts

Closes #80 .
This commit is contained in:
Pedro Mediano 2020-05-02 14:37:27 +01:00 committed by GitHub
parent 1c2ccda1eb
commit 64a7a80e30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ endif
# Common includes and paths for CUDA. This assumes the CUDA toolkit is in PATH
INCLUDES := -I. -I./cub -I${JNI_INCLUDE} -I${JNI_PLATFORM_INCLUDE}
LDFLAGS += -L. -L$(BIN) -lcuda -lcudart
NVCCLDFLAGS := -L. -L$(BIN) -lcuda -lcudart
.PHONY: all clean test
@ -102,7 +102,7 @@ $(BIN)/%.o: %.c
## Final shared library linking
#------------------------------
$(BIN)/libKraskov.so: $(BIN)/libgpuKnnLibrary.a $(c_objects)
${NVCC} ${NVCCFLAGS} ${INCLUDES} -Xcompiler -fPIC -shared -o $@ $(c_objects) ${LDFLAGS} -lgpuKnnLibrary
${NVCC} ${NVCCFLAGS} ${INCLUDES} -Xcompiler -fPIC -shared -o $@ $(c_objects) ${NVCCLDFLAGS} -lgpuKnnLibrary
## Test binary targets