Skip to content

Instantly share code, notes, and snippets.

@zero-tuesday
Created September 29, 2020 23:31
Show Gist options
  • Save zero-tuesday/cc7815fd73328144f0dd19709bb3f3aa to your computer and use it in GitHub Desktop.
Save zero-tuesday/cc7815fd73328144f0dd19709bb3f3aa to your computer and use it in GitHub Desktop.
Building cgit on macOS

Building cgit on macOS

Checkout and init the submodule.

git clone git://git.zx2c4.com/cgit
cd cgit
git submodule init
git submodule update

Install gettext through brew.

brew install gettext

Then create a cgit.conf file and set complier/linker flags to use the gettext library installed before.

CFLAGS = -g -O2 -Wall -I/usr/local/opt/gettext/include
LDFLAGS = -L/usr/local/opt/gettext/lib

Finish up with a simple make command.

make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment