linux 編譯upx
准備upx源碼
https://github.com/upx/upx
下載upx源碼
git clone https://github.com/upx/upx.git
准備ucl
http://www.oberhumer.com/opensource/ucl/
下載ucl
http://www.oberhumer.com/opensource/ucl/download/ucl-1.03.tar.gz
編譯
./configure
make
導出環境變量
export UPX_UCLDIR=$HOME/local/src/ucl-1.03
准備lzma-sdk
進入upx的src目錄
https://github.com/upx/upx-lzma-sdk
下載並重命名
git clone https://github.com/upx/upx-lzma-sdk.git
mv upx-lzma-sdk lzma-sdk
upx編譯
在upx的Makefile文件所在目錄下
設置腳本可執行
chmod +x src/stub/scripts/check_whitespace.sh
編譯
make all
src下的upx.out即為編譯好的可執行文件