more fun with ubuntu
Mike Wey
mike-wey at example.com
Sun May 26 10:26:28 PDT 2013
On 05/26/2013 06:50 PM, Ellery Newcomer wrote:
> On Sunday, 26 May 2013 at 16:28:33 UTC, Mike Wey wrote:
>>
>> Try prefixing the python lib with -L like so:
>>
>> dmd -unittest -property -debug -gc -version=Python_2_7_Or_Later
>> -version=Python_2_6_Or_Later -version=Python_2_5_Or_Later
>> -version=Python_2_4_Or_Later -L-ldl
>> -L/usr/lib/python2.7/config/libpython2.7.a object_.d -ofobject_.x
>> -I../../infrastructure/ -L-ldl -L-lutil -v
>
> Hey, that worked!
>
> now go report that to issue 7044 :)
It works in this case because it's treating the path to the python lib
as just an other linker flag. You would still need to be able to control
the order of the arguments passed to the linker by dmd if you want to
use std.net.curl for example since -lcurl should be passed to the linker
after -lphobos2.
--
Mike Wey
More information about the Digitalmars-d-learn
mailing list