Question

J'ai un tiers OS X dylib que j'utilise dans mon application et n'ont pas facilement accès à son créateur. Je voudrais déterminer si elle était liée à -flat_namespace. Est-ce possible? Si oui, comment?

Était-ce utile?

La solution

Exécuter otool -hV sur la bibliothèque. Si vous ne voyez pas TWOLEVEL, il était lié à -flat-namespace. Par exemple:

twolevel.dylib:
Mach header
      magic cputype cpusubtype  caps    filetype ncmds sizeofcmds      flags
MH_MAGIC_64  X86_64        ALL  0x00       DYLIB     8        672   NOUNDEFS DYLDLINK TWOLEVEL NO_REEXPORTED_DYLIBS

contre

flat.dylib:
Mach header
      magic cputype cpusubtype  caps    filetype ncmds sizeofcmds      flags
MH_MAGIC_64  X86_64        ALL  0x00       DYLIB     8        672 DYLDLINK NO_REEXPORTED_DYLIBS
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top