Skip to content

Commit b601cf2

Browse files
committed
Remove superfluous sapi/ include step
1 parent 76225c1 commit b601cf2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sapi/embed/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,13 @@ int main(int argc, char **argv)
3131
}
3232
```
3333
34-
To compile this, we must point the compiler to the PHP header files. The paths to the header files are listed from `php-config --includes`, but the path to the SAPI header files are not included in that list by default so we must explicitly include `$(php-config --include-dir)/sapi`.
34+
To compile this, we must point the compiler to the PHP header files. The paths to the header files are listed from `php-config --includes`.
3535
3636
We must also point the linker and the runtime loader to the `libphp.so` shared lib for linking PHP (`-lphp`) which is located at `$(php-config --prefix)/lib`. So the complete command to compile ends up being:
3737
3838
```bash
3939
$ gcc \
4040
$(php-config --includes) \
41-
-I$(php-config --include-dir)/sapi \
4241
-L$(php-config --prefix)/lib \
4342
embed_sapi_basic_example.c \
4443
-lphp \

0 commit comments

Comments
 (0)