I'm trying to compile shared library under Mac OS X El Captain and receive
(9015) Linking /Users/Administrator/Projects/Tokens/bin/libnpbssplugin.dylib
ld: illegal text-relocation to '_$NPPLUGIN$_Ld4' in /Users/Administrator/Projects/Tokens/dcu/i386-darwin/NPPlugin.o from '_NPPLUGIN_$$_HANDLENPNEXCEPTION$ANSISTRING$EXCEPTION' in /Users/Administrator/Projects/Tokens/dcu/i386-darwin/NPPlugin.o for architecture i386
An error occurred while linking
npBSSPlugin.dpr(192) Error: (9013) Error while linking
I've found similar problem
here:
just add other link flag:
-read_only_relocs suppress
But I don't see how to pass this flag to linker. Any solutions? Thanks!
P.S. Lazarus 1.6.4, FPC 3.0.2