lighttpd及pcre的交叉编译(不成熟)
A.环境说明
- 编译环境
ubuntu12.04
i686-pc-linux - 运行环境
openwrt - 交叉编译工具
mips-openwrt-linux
B.交叉编译思路
- 在 lighttpd与相关依赖库的安装 基础下进行本次交叉编译
- 通过config脚本配置编译环境中的编译工具为交叉编译工具
- 安装目录设置为最终运行目录,使得移植之后能够正确匹配
- 将需要的环境配置在运行设备上
C.编译pcre
1.配置脚本(设置编译工具等)
vim configure-opw.sh
#! /bin/sh
CXX=/home/jeff/extfs/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-g++ CC=/home/jeff/extfs/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-gcc AR=/home/jeff/extfs/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-