From 3dc7a1df03aa4c44c9d63ee0279d108b8cfe46ad Mon Sep 17 00:00:00 2001 From: Hessam Mehr Date: Wed, 18 Apr 2018 22:49:37 +0100 Subject: [PATCH] Copy libraries to $prefix/lib instead of $WORKSPACE/destdir. --- build_tarballs.jl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/build_tarballs.jl b/build_tarballs.jl index cf3ef72..258cb58 100644 --- a/build_tarballs.jl +++ b/build_tarballs.jl @@ -20,7 +20,7 @@ LIBSJL="`pwd`/julia/lib/julia" INCLUDES="`pwd`/julia/include/julia" cd Turing.jl/deps gcc -O2 -shared -std=gnu99 -I$INCLUDES -DJULIA_ENABLE_THREADING=1 -fPIC -L$LIBSJL -L$LIBS -Wl,--export-dynamic -ljulia -o libtask.so -mv libtask.so $WORKSPACE/destdir +mv libtask.so $prefix/lib exit fi @@ -35,7 +35,7 @@ LIBSJL="`pwd`/julia/lib/julia" INCLUDES="`pwd`/julia/include/julia" cd Turing.jl/deps/ gcc -O2 -shared -std=gnu99 -I$INCLUDES -DJULIA_ENABLE_THREADING=1 -fPIC -L$LIBSJL -L$LIBS -Wl,--export-dynamic -ljulia -o libtask.so -mv libtask.so $WORKSPACE/destdir +mv libtask.so $prefix/lib exit fi @@ -50,7 +50,7 @@ LIBSJL="`pwd`/julia/lib/julia" INCLUDES="`pwd`/julia/include/julia" cd Turing.jl/deps/ gcc -O2 -shared -std=gnu99 -I$INCLUDES -DJULIA_ENABLE_THREADING=1 -fPIC -L$LIBSJL -L$LIBS -Wl,--export-dynamic -ljulia -o libtask.so -mv libtask.so $WORKSPACE/destdir +mv libtask.so $prefix/lib exit fi @@ -65,7 +65,7 @@ LIBSJL="`pwd`/julia/lib/julia" INCLUDES="`pwd`/julia/include/julia" cd Turing.jl/deps/ gcc -O2 -shared -std=gnu99 -I$INCLUDES -DJULIA_ENABLE_THREADING=1 -fPIC -L$LIBSJL -L$LIBS -Wl,--export-dynamic -ljulia -o libtask.so -mv libtask.so $WORKSPACE/destdir +mv libtask.so $prefix/lib exit fi @@ -80,7 +80,7 @@ LIBSJL="`pwd`/julia/lib/julia" INCLUDES="`pwd`/julia/include/julia" cd Turing.jl/deps/ gcc -O2 -shared -std=gnu99 -I$INCLUDES -DJULIA_ENABLE_THREADING=1 -fPIC -L$LIBSJL -L$LIBS -Wl,--export-dynamic -ljulia -o libtask.so -mv libtask.so $WORKSPACE/destdir +mv libtask.so $prefix/lib exit fi @@ -95,7 +95,7 @@ LIBSJL="`pwd`/julia/lib/julia" INCLUDES="`pwd`/julia/include/julia" cd Turing.jl/deps/ gcc -O2 -shared -std=gnu99 -I$INCLUDES -DJULIA_ENABLE_THREADING=1 -fPIC -L$LIBSJL -L$LIBS -Wl,--export-all-symbols -ljulia -o libtask.dll -mv libtask.dll $WORKSPACE/destdir/ +mv libtask.dll $prefix/lib exit fi @@ -111,7 +111,7 @@ LIBSJL="`pwd`/julia/lib/julia" INCLUDES="`pwd`/julia/include/julia" cd Turing.jl/deps/ gcc -O2 -shared -std=gnu99 -I$INCLUDES -DJULIA_ENABLE_THREADING=1 -fPIC -L$LIBSJL -L$LIBS -Wl,--export-all-symbols -ljulia -o libtask.dll -mv libtask.dll $WORKSPACE/destdir/ +mv libtask.dll $prefix/lib exit fi @@ -127,7 +127,7 @@ LIBSJL="`pwd`/julia/Contents/Resources/julia/lib/julia" INCLUDES="`pwd`/Contents/Resources/julia/include/julia" cd Turing.jl/deps/ gcc -O2 -shared -std=gnu99 -I$INCLUDES -DJULIA_ENABLE_THREADING=1 -fPIC -L$LIBSJL -L$LIBS -ljulia -o libtask.dylib -mv libtask.dylib $WORKSPACE/destdir/ +mv libtask.dylib $prefix/lib exit fi