if you add -fembed-bitcode like in Calling C Code with Automatic Differentiation in Julia - #6 by wsmoses
does it work?