Issue #16 resolved

Remove if unsupported: -L--no-warn-search-mismatch

Nick Sabalausky
created an issue

On some older Linux systems the linker doesn't support -L--no-warn-search-mismatch, which is in dmd.conf by default and triggers a linker error. Fortunately, the switch is not strictly necessary (I've asked about it on the NG before, although I don't have a link handy.)

So it would be nice if DVM could detect such systems and remove the switch from dmd.conf when appropriate (probably while installing DVM).

It would be better, of course, if DMD could somehow handle this itself, but since DMD is often obtained in no-installer zip form (such as when using DVM), I'm not sure there's really an appropriate way for DMD to handle this on its own.

Comments (5)

  1. Nick Sabalausky reporter

    Well, there's always the brute-force way of calling ld with it and scraping the results. On the affected system I have, I get:

    $ ld --no-warn-search-mismatch
    ld: unrecognized option '--no-warn-search-mismatch'
    ld: use the --help option for usage information
    

    Note the text is on stderr.

    Beyond that, I'm not certain of any other method, but I would guess that it may be possible for us to find out if there were a specific version of ld that introduced the option and then...umm scrape "ld --version"...But I guess if output is going to be scraped, may as well just try "--no-warn-search-mismatch" directly.

  2. Log in to comment