Skip to content

Commit

Permalink
fixes for mac compile
Browse files Browse the repository at this point in the history
  • Loading branch information
jcanny committed Apr 26, 2015
1 parent d92fb9d commit e6e764f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jni/src/configure
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ if [ "$OS" = "apple" ] ; then
JAVA_HOME=`/usr/libexec/java_home`
fi
CUDA_HOME="/usr/local/cuda"
CC="gcc"
CC="icc"
GCC="g++"
NVCC="nvcc"
NVCCFLAGS="-c -ccbin=clang -use_fast_math -I$BIDMAT_ROOT/jni/include \
Expand All @@ -72,9 +72,9 @@ if [ "$OS" = "apple" ] ; then
OBJ="o"
OUTFLG="-o "
CPPFLAGS="-fPIC -c -O2 -g -DNDEBUG -I$JAVA_HOME/include -I$JAVA_HOME/include/darwin -I$BIDMAT_ROOT/jni/include -I$CUDA_HOME/include"
CFLAGS="-fPIC -c -O2 -g -DNDEBUG -I$JAVA_HOME/include -I$JAVA_HOME/include/darwin -I$BIDMAT_ROOT/jni/include -I$MKL_ROOT/include -I$MKL_ROOT/include/${ARCHD}${SUBDIR}"
CFLAGS="-openmp -fPIC -c -O2 -g -DNDEBUG -I$JAVA_HOME/include -I$JAVA_HOME/include/darwin -I$BIDMAT_ROOT/jni/include -I$MKL_ROOT/include -I$MKL_ROOT/include/${ARCHD}${SUBDIR}"
LB="ar rc"
LD="g++ -shared"
LD="icc -dynamiclib"
GLD="nvcc -shared -Xlinker -rpath -Xlinker ${CUDA_HOME}/lib -lstdc++"
LDFLAGS="$LDFLAGS"
LIBPREPEND="lib"
Expand Down

0 comments on commit e6e764f

Please sign in to comment.