dmd.conf... again
Atila Neves via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Aug 12 08:52:44 PDT 2015
On Wednesday, 12 August 2015 at 15:49:37 UTC, Joakim Brännström
wrote:
> On Wednesday, 12 August 2015 at 15:30:09 UTC, Atila Neves wrote:
>> [...]
>
> From man ld :)
> -l namespec
> Add the archive or object file specified by namespec to the
> list of files to link. This option may be used any number of
> times. If namespec is of the form :filename, ld will search
> the library path for a file called filename, otherwise it will
> search the library path for a file called libnamespec.a.
>
> On systems which support shared libraries, ld may also search
> for files other than libnamespec.a. Specifically, on ELF and
> SunOS systems, ld will search a directory for a library called
> libnamespec.so before searching for one called libnamespec.a.
> (By convention, a ".so" extension indicates a shared library.)
> Note that this behavior does not apply to :filename, which
> always specifies a file called filename.
>
>
> So in this case it could probably work with -lphobos2.
> Maybe -L-l:libphobos2.a was chosen to force the linking with
> the static lib (as can be seen in the second paragraph for
> systems that supports both).
Yeah, pretty sure that was it: when I called gcc myself it linked
to the shared version. Maybe I should file a bug report for at
least a proper error message when using it on ancient systems.
Atila
More information about the Digitalmars-d-learn
mailing list