From 9b1928ca3f8a252647f295cdb1b23d538f90bdc7 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Thu, 22 May 2025 14:12:08 +0200 Subject: [PATCH] Add moar instructions Signed-off-by: Matteo Collina --- INTERNALS.md | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/INTERNALS.md b/INTERNALS.md index c29ce261..17400dab 100644 --- a/INTERNALS.md +++ b/INTERNALS.md @@ -1,4 +1,23 @@ -## Build +# Build + +## Prerequisites + +### MAC OS X + +Install the following tools: + +``` +brew install autoconf automake libtool re2c bison libiconv +``` + +Add the following to your `~/.bash_profile` or `~/.zshrc`: + +```sh +export PATH="$(brew --prefix bison)/bin:$(brew --prefix libiconv)/bin:$PATH" +export LDFLAGS="$LDFLAGS -L$(brew --prefix bison)/lib -L$(brew --prefix libiconv)/lib" +``` + +Create a new shell session to load the new environment variables. ### Building PHP @@ -35,7 +54,7 @@ must be set to adjust the rpath to `$ORIGIN` in the build output. RUSTFLAGS="-C link-args=-Wl,-rpath,\$ORIGIN" npm run build ``` -## Various learnings +# Various learnings ### php://input