Openwrt 交叉編譯libxml2

系統環境爲Ubuntu 12.04.04,配置交叉編譯環境使用以下命令即可,具體路徑視自己環境而定:

./configure CC=/root/openwrt/staging_dir/toolchain-mipsel_1004kc+dsp_gcc-5.3.0_musl-1.1.14/bin/mipsel-openwrt-linux-gcc CXX=/root/openwrt/staging_dir/toolchain-mipsel_1004kc+dsp_gcc-5.3.0_musl-1.1.14/bin/mipsel-openwrt-linux-g++ --host=mipsel-linux --prefix=/root/xml --build=i686-pc-linux-gnu


在進行make時,報thread.c 80,81行報錯,無法通過,

80   extern int pthread_equal ()

81           __attribute((weak));


解決方法:

  直接將其註釋即可,然後再進行make以及make install


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章