can I build cgit statically

Robert Davies rob at robdavies.net
Tue Jan 13 06:08:37 UTC 2026


Hi

I haven't found a way to build cgit statically, though I have found a 
solution to the LD_LIBRARY_PATH problem.

I have used patchelf to add the LD_LIBRARY_PATH as an RPATH
patchelf --add-rpath <path_to_library>

Kind regards,
Rob

On 13/10/2025 10:20, rob at robdavies.net wrote:
> Hi
> 
> Is there a way to build cgit statically?
> 
> I'm trying to build cgit with lua on a shared web hosting. I have built 
> lua libraries and need to static link these lua libraries, this is due 
> to having no way to add lua libraries to LD_LIBRARY_PATH to run cgit
> 
> Kind regards,
> Rob



More information about the CGit mailing list