"Kirill Bychkov" <kirby@linklevel.net> writes:
> [...]
>> - graphics/mapnik
>> breaks because of python2. Easy to fix, but then fails at
>> linking:
>>
>> ----------------8<----------------
>> ld: error: relocation R_X86_64_PC32 cannot be used against symbol typeinfo for
>> boost::wrapexcept<boost::bad_function_call>; recompile with -fPIC
>>>>> defined in src/expression_grammar.os
>>>>> referenced by expression_grammar.cpp
>>>>> src/expression_grammar.os:(void
>>>>> boost::throw_exception<boost::bad_function_call>(boost::bad_function_call
>>>>> const&))
>>
>> ld: error: relocation R_X86_64_PC32 cannot be used against symbol vtable for
>> boost::exception_detail::clone_base; recompile with -fPIC
>>>>> defined in src/expression_grammar.os
>>>>> referenced by expression_grammar.cpp
>>>>> src/expression_grammar.os:(boost::wrapexcept<boost::bad_function_call>::wrapexcept(boost::bad_function_call
>>>>> const&))
>>
>> ...
>> ---------------->8----------------
>>
>> it shouldn't be hard to fix, I haven't really investigated it
>> because I was working on the other ports
>>
>> Attaching wip diff
>
> Hi,
> Adding -fPIC fixes linking:
> -WARNING_CXXFLAGS="-I${X11BASE}/include/freetype2" \
> +WARNING_CXXFLAGS="-I${X11BASE}/include/freetype2 -fPIC" \
Yes, thanks for spotting it! I went for a slightly different tweak
(adding CUSTOM_CXXFLAGS) instead, but that' the trick :)
No comments:
Post a Comment