On the docker ubuntu xenial image the D language options for openssl and libevent have been disabled for a little while. It looks like an error in how dmd adds -L-lssl and -L-lcrypto to the eventual "cc" command that does the link. It is adding the libraries before the source code that depends on them. I've tried everything I can think of to get it to put them at the end but it is not working. If I switch to using ld.gold the problem goes away but other problems appear elsewhere. If I add -L--start-group to the build commands for dmd then it also works with gcc and ld.bfd.
Anybody know how to force dmd to put any added "-L" flags at the end of the command line it passes down to "cc"?
