Page 1 of 1

libGit2?

Posted: Mon Feb 06, 2017 8:54 pm
by SamuraiCrow
How hard would it be to port https://github.com/libgit2/luagit2 bindings to Hollywood?

Re: libGit2?

Posted: Tue Feb 07, 2017 11:36 pm
by airsoftsoftwair
On Windows/Linux/Mac it's not so difficult but on Amiga compatibles you'd need to invest some effort into adapting libgit to compile without the C functions that need constructor/destructor code, see here: http://www.hollywood-mal.com/docs/html/ ... SCRT_.html

Re: libGit2?

Posted: Wed Feb 08, 2017 8:03 am
by SamuraiCrow
SimpleGit for OS4 is based on it but may be statically linking it. I'll have to check on this some more later on.

Re: libGit2?

Posted: Fri Feb 10, 2017 11:24 pm
by airsoftsoftwair
Yes, that definitely looks like static linking. In a Hollywood plugin you'll of course normally also statically link libgit but there is no constructor/destructor code for the C runtime so you need to tweak lots of code for this purpose.