19 lines
467 B
Bash
19 lines
467 B
Bash
|
#!/bin/bash
|
||
|
#git clone https://code.teampandory.com/thirdparty/libusb/
|
||
|
|
||
|
set -e
|
||
|
|
||
|
wget -c https://code.teampandory.com/thirdparty/libusb/-/archive/v1.0.26/libusb-v1.0.26.tar.gz
|
||
|
tar xvf libusb-v1.0.26.tar.gz
|
||
|
cd libusb-v1.0.26
|
||
|
|
||
|
|
||
|
export CFLAGS="-I$PREFIX/include -O3"
|
||
|
export CPPFLAGS="-I$PREFIX/include -O3"
|
||
|
export LDFLAGS="-L$PREFIX/lib"
|
||
|
export LIBS="-lrt"
|
||
|
|
||
|
./autogen.sh --host="$xHOST" --prefix="$PREFIX"
|
||
|
#./configure --host="$xHOST" --prefix="$PREFIX"
|
||
|
make
|
||
|
make install
|