discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Category Unknown ?


From: Andreas Buff
Subject: Re: Category Unknown ?
Date: Thu, 21 Oct 2021 17:26:28 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.2.0

Looks like no linker supports the -ObjC flag on Linux.

I have intalled LLVM 13 and am checking the man pages on all LDs.

# On MAc

$whereis ld
/usr/bin/ld

$ld -v
@(#)PROGRAM:ld  PROJECT:ld64-711
BUILD 14:59:24 Aug 21 2021
configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32  
i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
LTO support using: LLVM version 13.0.0, (clang-1300.0.29.3) (static  
support for 27, runtime is 27)
TAPI support using: Apple TAPI version 13.0.0 (tapi-1300.0.6.5)

from `man ld`:
"
-all_load   Loads all members of static archive libraries.

-ObjC       Loads all members of static archive libraries that implement  
an Objective-C class or category.

-force_load path_to_archive
             Loads all members of the specified static archive library.   
Note: -all_load forces all members of all archives to be loaded.  This  
option allows you
             to target a specific archive.
"

# On Debian:

I have  searched the man pages for all LD's I have on my system (lld of  
LLVM11 and LLVM13, ld.gold, lld.bfd). None of them offers the above  
mentioned flags.




On 21.10.21 10:23, Andreas Buff wrote:
> Hi Riccardo,
>
> this is an issue for shared libs only. Unfortunately we must use static
> libs for this project for several reasons.
>
> 🖖
> Andreas
>
> On 20.10.21 23:12, Riccardo Mottola wrote:
>> Hi,
>>
>>
>> Andreas Buff wrote:
>>> It's linked to a static lib that has also be build with GNUstep. The lib
>>> contains Categories.
>> did you try using a shared library instead?
>>
>> Riccardo

Attachment: sender_key.asc
Description: application/pgp-keys


reply via email to

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