Compile git for 32-bit linux on shared hosting

前端 未结 3 440
梦谈多话
梦谈多话 2021-01-18 03:25

I need to set up the Git client on a cheap shared hosting, with a no-name 32-bit Linux distribution. GCC isn\'t available so I can\'t compile it on the server. I do have at

3条回答
  •  梦毁少年i
    2021-01-18 03:40

    OS X isn't going to work - its geared to produce Mach-O binaries with the OS X syscall interface, not Linux ELF binaries.

    Using -m32 on the CLFAGS is going to help, but most importantly, use -static as well. Static binaries are much more portable.

    If that fails, please provide exactly how it failed.

提交回复
热议问题