File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ make install
2929
3030export 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"
3535fi
@@ -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"
5252fi
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 "
5656fi
5757
107107
108108cd ${LIB_PATH} /hidapi-0.12.0
109109export PKG_CONFIG_PATH=$PREFIX /lib/pkgconfig
110- libtoolize
111110./bootstrap
112111./configure --prefix=" $PREFIX " --enable-static --disable-shared --host=" $CROSS_COMPILE "
113112make distclean
You can’t perform that action at this time.
0 commit comments