Skip to content

Commit

Permalink
use rpath on macosx
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Oct 10, 2016
1 parent be6f754 commit 935be6e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/jitlayers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,12 @@ void NotifyDebugger(jit_code_entry *JITCodeEntry)
// Resolve compiler-rt functions in the shared library that we created from compiler-rt
static uint64_t resolve_compiler_rt(const char *name)
{
static void *compiler_rt_hdl = jl_load_dynamic_library_e("libcompiler-rt",
#if defined(__APPLE__)
static const char *const compiler_rt_lib = "@rpath/julia/libcompiler-rt";
#else
static const char *const compiler_rt_lib = "libcompiler-rt";
#endif
static void *compiler_rt_hdl = jl_load_dynamic_library_e(compiler_rt_lib,
JL_RTLD_LOCAL | JL_RTLD_LAZY);
static const char *const prefix = "__";
if (!compiler_rt_hdl) {
Expand Down

0 comments on commit 935be6e

Please sign in to comment.