gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: building libobjc2 fPIC issue and ccmake . effectiveness


From: David Chisnall
Subject: Re: building libobjc2 fPIC issue and ccmake . effectiveness
Date: Fri, 29 May 2020 13:00:17 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1

Hi,

On 29/05/2020 13:24, Riccardo Mottola wrote:
Hi!

I am trying to build libobjc2 on NetBSD

Linking fails (standard system linker)

[  0%] Linking C shared library libobjc.so
/usr/bin/ld: /usr/lib/libsupc++.a(eh_globals.o): relocation

We shouldn't be linking libsupc++.a into libobjc.so. It sounds as if NetBSD ships a separate C++ runtime library for static linking, but not for dynamic linking. You can work around this by explicitly setting libstdc++ as your C++ runtime library in the libobjc2 cmake config.

The correct fix it so tweak the C++ runtime library check in CMake so that it looks only for dynamic libraries.

David



reply via email to

[Prev in Thread] Current Thread [Next in Thread]