Skip to content

Commit 64c01b0

Browse files
committed
fix build
1 parent 32c3e55 commit 64c01b0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

deps/build_libs.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ make install
2929

3030
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig
3131

32-
if [[ $CROSS_COMPILE == "x86_64-apple-darwin13" ]]; then
32+
if [[ $CROSS_COMPILE == "x86_64-apple-darwin13" || $CROSS_COMPILE == "aarch64-apple-darwin" ]]; then
3333
export LIBUSB_1_0_CFLAGS=-I${PREFIX}/include/libusb-1.0
3434
export LIBUSB_1_0_LIBS="-L${PREFIX}/lib -lusb-1.0"
3535
fi
@@ -51,7 +51,7 @@ if [[ $CROSS_COMPILE == "i686-w64-mingw32" ]]; then
5151
CMAKE_EXTRA_FLAG="$CMAKE_EXTRA_FLAG -DCMAKE_TOOLCHAIN_FILE=./cmake/Toolchain-i686-w64-mingw32.cmake"
5252
fi
5353

54-
if [[ $CROSS_COMPILE == "x86_64-apple-darwin13" ]]; then
54+
if [[ $CROSS_COMPILE == "x86_64-apple-darwin13" || $CROSS_COMPILE == "aarch64-apple-darwin" ]]; then
5555
CMAKE_EXTRA_FLAG="$CMAKE_EXTRA_FLAG -DCMAKE_AR=$AR -DCMAKE_RANLIB=$RANLIB"
5656
fi
5757

@@ -107,7 +107,6 @@ fi
107107

108108
cd ${LIB_PATH}/hidapi-0.12.0
109109
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig
110-
libtoolize
111110
./bootstrap
112111
./configure --prefix="$PREFIX" --enable-static --disable-shared --host="$CROSS_COMPILE"
113112
make distclean

0 commit comments

Comments
 (0)