Walter Bright, el 13 de agosto a las 14:19 me escribiste: > > > [email protected] wrote: > >> -L-Lpath > >>works for me on Linux. > > > >Well good old friend optlink doesn't support something like that. > >And the LIB variable is overwritten by the content specified in > >sc.ini I think. > > dmd will pass any switch directly to the linker with the -L command. > I know optlink has a problem with lib paths, but such is not fixable > by enhancing pragmas, but by enhancing optlink.
I don't mind having an option to set a search path too, it might be useful for big projects using libraries internally. What I do think is important is an option to ignore pragma(lib) entirely, because even when is not very common, users might want to link against an specific custom library name. For example in Debian sometimes there are packages for the same library but configured in different ways, like libcurl and libcurl-gnutls. I opened a bug report: http://d.puremagic.com/issues/show_bug.cgi?id=4642 -- Leandro Lucarella (AKA luca) http://llucax.com.ar/ ---------------------------------------------------------------------- GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05) ---------------------------------------------------------------------- Fitter, happier, more productive, comfortable, not drinking too much, regular exercise at the gym (3 days a week), getting on better with your associate employee contemporaries, _______________________________________________ dmd-internals mailing list [email protected] http://lists.puremagic.com/mailman/listinfo/dmd-internals
