Skip to content

Commit 42ab801

Browse files
authored
Add moar instructions (#13)
Signed-off-by: Matteo Collina <[email protected]>
1 parent 3a70490 commit 42ab801

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

INTERNALS.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
1-
## Build
1+
# Build
2+
3+
## Prerequisites
4+
5+
### MAC OS X
6+
7+
Install the following tools:
8+
9+
```
10+
brew install autoconf automake libtool re2c bison libiconv
11+
```
12+
13+
Add the following to your `~/.bash_profile` or `~/.zshrc`:
14+
15+
```sh
16+
export PATH="$(brew --prefix bison)/bin:$(brew --prefix libiconv)/bin:$PATH"
17+
export LDFLAGS="$LDFLAGS -L$(brew --prefix bison)/lib -L$(brew --prefix libiconv)/lib"
18+
```
19+
20+
Create a new shell session to load the new environment variables.
221

322
### Building PHP
423

@@ -54,7 +73,7 @@ must be set to adjust the rpath to `$ORIGIN` in the build output.
5473
RUSTFLAGS="-C link-args=-Wl,-rpath,\$ORIGIN" npm run build
5574
```
5675

57-
## Various learnings
76+
# Various learnings
5877

5978
### php://input
6079

0 commit comments

Comments
 (0)