Skip to content

Commit 034ec9a

Browse files
committed
update readme
1 parent f51eb6e commit 034ec9a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ patch -p1 < sapi/micro/patches/<name of patch>
9595

9696
`--disable-phpdbg --disable-cgi --disable-cli --disable-all --enable-micro --enable-phar --with-ffi --enable-zlib`
9797

98-
Linux下,存在C库兼容性问题,micro构建系统提供了两种选项:
98+
Linux下,存在C库兼容性问题,对于这个,micro构建系统提供了两种选项:
9999

100100
- `--enable-micro=yes`或者`--enable-micro`:这将会构建PIE的动态的micro,这种micro不能跨C库调用(即在alpine上构建的使用musl的micro不能在只安装了glibc的CentOS上使用,反过来也不能),但支持ffi和PHP的`dl()`函数。
101101
- `--enable-micro=all-static`:这将会构建静态的micro,这种micro不依赖C库,可以直接跑在支持的Linux内核上,但不能使用ffi/`dl()`
@@ -113,7 +113,7 @@ make micro
113113

114114
### Windows 构建
115115

116-
0.参考官方构建说明准备PHP构建环境
116+
0.参考[官方构建说明](https://wiki.php.net/internals/windows/stepbystepbuild_sdk_2)准备PHP构建环境,或者用[我的脚本](https://github.com/dixyes/php-dev-windows-tool)准备一下
117117

118118
1.buildconf
119119

@@ -134,7 +134,7 @@ configure <options>
134134
`--disable-all --disable-zts --enable-micro --enable-phar --with-ffi --enable-zlib`
135135

136136
3.make
137-
由于构建系统的实现问题, Windows下不能使用nmake命令直接构建,使用nmake micro来构建
137+
由于构建系统的实现问题, Windows下不能使用nmake命令直接构建,使用nmake micro来构建<!--TODO: 现在可以了,抽空改了-->
138138

139139
```batch
140140
# 在php源码目录下

0 commit comments

Comments
 (0)