Skip to content

Commit

Permalink
Copy libraries to $prefix/lib instead of $WORKSPACE/destdir.
Browse files Browse the repository at this point in the history
  • Loading branch information
hessammehr committed Apr 18, 2018
1 parent d7bd0ad commit 3dc7a1d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3dc7a1d

Please sign in to comment.