Skip to content

Commit

Permalink
Fix broken jq
Browse files Browse the repository at this point in the history
  • Loading branch information
roleoroleo committed Mar 18, 2022
1 parent a008f99 commit 4c3fb2a
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/jq/compile.jq
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
#!/bin/bash

export CROSSPATH=/opt/yi/arm-linux-gnueabihf-4.8.3-201404/bin
export PATH=${PATH}:${CROSSPATH}

export TARGET=arm-linux-gnueabihf
export CROSS=arm-linux-gnueabihf
export BUILD=x86_64-pc-linux-gnu

export CROSSPREFIX=${CROSS}-

export STRIP=${CROSSPREFIX}strip
export CXX=${CROSSPREFIX}g++
export CC=${CROSSPREFIX}gcc
export LD=${CROSSPREFIX}ld
export AS=${CROSSPREFIX}as
export AR=${CROSSPREFIX}ar

SCRIPT_DIR=$(cd `dirname $0` && pwd)
cd $SCRIPT_DIR

Expand All @@ -12,4 +28,4 @@ mkdir -p ../_install/bin || exit 1

cp ./jq ../_install/bin || exit 1

arm-linux-gnueabihf-strip ../_install/bin/* || exit 1
$STRIP ../_install/bin/* || exit 1

0 comments on commit 4c3fb2a

Please sign in to comment.