linux cross libuv


原文链接: linux cross libuv

交叉编译

git clone https://github.com/libuv/libuv

sh autogen.sh
$ ./configure --prefix=/tmp/libuv_prefix --host=arm-none-linux-gnueabi CC=arm-none-linux-gnueabi-gcc
$ make
$ make check
$ make install


2.交叉编译libuv

    ./autogen.sh

    CC=/opt/embedded/tools/bin/arm-linux-gnueabihf-gcc 
    CFLAGS=-I/opt/embedded/platform/usr/include 
    LDFLAGS=-L/opt/embedded/platform/usr/lib
    LIBS=-ludev 
    ./configure --prefix=/opt/embedded/platform/usr/ --host=arm-linux

    make install

`