Skip to content

Commit b6db929

Browse files
authored
use debug libs when Julia is debug build (#644)
1 parent 3936f37 commit b6db929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PackageCompiler.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ function create_sysimg_from_object_file(object_files::Vector{String},
543543
# Prevent compiler from stripping all symbols from the shared lib.
544544
o_file_flags = Sys.isapple() ? `-Wl,-all_load $object_files` : `-Wl,--whole-archive $object_files -Wl,--no-whole-archive`
545545
extra = get_extra_linker_flags(version, compat_level, soname)
546-
cmd = `$(bitflag()) $(march()) -shared -L$(julia_libdir()) -L$(julia_private_libdir()) -o $sysimage_path $o_file_flags -ljulia-internal -ljulia $extra`
546+
cmd = `$(bitflag()) $(march()) -shared -L$(julia_libdir()) -L$(julia_private_libdir()) -o $sysimage_path $o_file_flags $(Base.shell_split(ldlibs())) $extra`
547547
run_compiler(cmd; cplusplus=true)
548548
return nothing
549549
end

0 commit comments

Comments
 (0)