[Mono-dev] Static Bundling
mobin.seven at live.com
Sun Dec 29 09:07:29 UTC 2013
after 6 years from conversation ,I have the same problem here!
I'm working on cross mkbundle for armhf. I got everything done for a console
app but for winforms apps I have the 'libgdiplus' problem. I have the
'libgdiplus.a' library which is armhf native.
How can I statically link this library via mkbundle and gcc? what dllmap
entry should be added to config file?
Avery Pennarun wrote
>> If you need additional capabilities you can roll your own, like
>> linking the libs to your program yourself and redirecting the p/invoke
>> calls as explained in man mono-config.
> This is the part that confused me: reading man mkbundle doesn't
> explain the limitations. Thanks for the explanation.
> The p/invoke stuff seems like it might be easy enough to fake by
> linking to a static library instead of a dynamic one, and then looking
> for dynamic symbols in dlopen(NULL) (ie. the executable file). The
> executable would have to be linked with -rdynamic in that case so that
> it exports its own symbols. All a bit tricky to get right, though.
can you explain more?
View this message in context: http://mono.1490590.n4.nabble.com/Static-Bundling-tp1531639p4661629.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
More information about the Mono-devel-list