Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能将Boost库改成静态链接吗? #31

Open
siwind opened this issue Oct 25, 2020 · 1 comment
Open

能将Boost库改成静态链接吗? #31

siwind opened this issue Oct 25, 2020 · 1 comment

Comments

@siwind
Copy link

siwind commented Oct 25, 2020

Openwrt设备空间不多,安装trojan会额外安装好几个Boost库。

改成静态链接可能会更好点吧?

@kousyougi
Copy link

改靜態連結後,只是把Boost打包進去trojan,整體大小不怎麼變。
boot大小我看才200K而已,不如從libopenssl跟UPX壓縮下手。

很多程式都有依賴libopenssl,你的openwrt應該有裝了。
https://github.com/coolsnowwolf/lede/tree/master/package/lean/trojan
用這個編譯不會把libopenssl打包進去,編譯出來的ipk大小從1.4M降到200K,安裝後的trojan程式從3M減少到500K。

然後用UPX把/usr/sbin裡能壓縮的程式都拿出來壓縮一遍之後再放回去
https://github.com/upx/upx
(upx-3.96-win64好像有問題,會報壓縮錯誤。用upx-3.95-win64在win下面可以正常壓縮)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants