Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Apr 7, 2017
1 parent 3dcbc7d commit 3b56638
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion contrib/julia-config.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ function libDir()
end
end

private_libDir() = joinpath(libDir(), "julia")

function includeDir()
joinpath(match(r"(.*)(bin)",JULIA_HOME).captures[1],"include","julia")
end
Expand Down Expand Up @@ -59,7 +61,7 @@ function ldlibs()
"julia"
end
if is_unix()
return replace("""-Wl,-rpath,$(libDir()) -l$libname""","\\","\\\\")
return replace("""-Wl,-rpath,$(libDir()) -Wl,-rpath,$(private_libDir()) -l$libname""","\\","\\\\")
else
return "-l$libname -lopenlibm"
end
Expand Down
3 changes: 2 additions & 1 deletion test/embedding.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# test that the embedding example runs without error
let
embedding_bin = joinpath(JULIA_HOME,"..","libexec","embedding")
exename = "embedding" * (is_windows() ? ".exe" : "")
embedding_bin = joinpath(JULIA_HOME,"..","libexec",exename)
lines = readlines(pipeline(`$(embedding_bin)`,
stderr=DevNull))
@test length(lines) == 5
Expand Down

0 comments on commit 3b56638

Please sign in to comment.