www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - Link error - undefined reference to libcurl- Workaround?

LDC fails to link my application with the error message

In Funktion `_D3std3net4curl4HTTP18_sharedStaticCtor1FZv':
Nicht definierter Verweis auf `curl_version_info'
In Funktion `_D3std3net4curl4Curl18_sharedStaticDtor3FZv':
Nicht definierter Verweis auf `curl_global_cleanup'
In Funktion `_D3std3net4curl13__shared_ctorZ':
Nicht definierter Verweis auf `curl_global_init'
collect2: error: ld returned 1 exit status
Error: /usr/bin/gcc failed with status: 1

Version: 0.15.2-beta1, binary from github repo.
Linux Mint 17, 64 Bit

The app does not use std.net, libcurl or anything like that - 
it's mainly math and some file IO.

I found https://github.com/ldc-developers/ldc/issues/683 but it 
does not mention any workarounds.
Are there any known workarounds for this issue? -L=-lcurl does 
not work for me.
For same strange reason DUB (with ldc) can build the app in debug 
mode while ldc *.d fails.
With --build=release DUB produces the same error...
Apr 10 2015