/usr/bin/ld: ./libudns.a(udns_resolver.o): relocation R_X86_64_32 against `dns_defctx' can not be used when making a shared object; recompile with -fPIC
Iñaki Baz Castillo
ibc at aliax.net
Mon Feb 14 03:41:54 MSK 2011
2011/2/12 Iñaki Baz Castillo <ibc at aliax.net>:
>> You can try running `make sharedlib' in the udns source directory --
>> this will produce a series of .lo files, just like it produces a
>> bunch of .o files for static library. You grab these .lo files
>> and produce a static library from them -- libudns.a, like this:
>>
>> rm -f libudns.a
>> ar r libudns.a *.lo
>>
>> This is not perfect, but will work for your case.
I've implemented this mechanism in my Ruby em-udns gem:
https://github.com/ibc/em-udns/blob/master/ext/extconf.rb
Cheers.
--
Iñaki Baz Castillo
<ibc at aliax.net>
More information about the udns
mailing list