https://issues.dlang.org/show_bug.cgi?id=24427

--- Comment #11 from Carl Sturtivant <[email protected]> ---
(In reply to Carl Sturtivant from comment #10)
> (In reply to Richard Cattermole from comment #9)

====
$ ldc2 -c main.d
$ ldc2 -of=main -L-E main.o -L-ldl
$ ldc2 -c --relocation-model=pic dynamic_lib.d
$ ldc2 -of=dynamic_lib.so -shared -relocation-model=pic dynamic_lib.o
(dmd-2.107.0)carl@palmtree ~/Documents/dprogs/dl $ main
Aborting from rt/sections_elf_shared.d(605) Only one D shared object allowed
for static runtime. Link with shared runtime via LDC switch
'-link-defaultlib-shared'.Aborted (core dumped)
====

--- looks like the crash options are the default: not shared for main and
shared for the dynamic library.

--

Reply via email to