求官方技术人员介绍一下PHP仓库里的编译方式如何分模块的
Tofloor
poster avatar
呆了个呆
deepin
2016-01-19 18:34
Author
我看了下,用仓库安装的 PHP7 的 /usr/lib/apache2/modules/libphp7.0.so 文件大小是 11M 左右。

而我自己用 PHP 源码编译的模块为 30M 左右,我就想知道为什么官方编译的这么小,debian 官方仓库的里的也是很小的。想学习一下,有人教教不?
Reply Favorite View the author
All Replies
avatar
liujianfeng
deepin
2016-01-19 19:05
#1
  1. apt-get source php7.0
Copy the Code
下载源码
在debian/rules可以找到编译的configure参数,对比下你的
Reply View the author
avatar
MattD
deepin
2016-01-19 19:41
#2
跟编译器的优化也有关系吧……另外也要看最终是否去掉调试符号,是否strip啥的
Reply View the author