Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
fix DYNAMIC_LDFLAGS (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilsaraf authored Nov 14, 2020
1 parent 1929b86 commit ad15439
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,12 @@ do
BINARY="$OUTFILE.exe"
fi

DYNAMIC_LDFLAGS=$LDFLAGS
DYNAMIC_LDFLAGS="$LDFLAGS"
if [[ "$GOARM" != "" ]]
then
DYNAMIC_LDFLAGS = "$DYNAMIC_LDFLAGS -X github.com/stellar/kelp/cmd.goarm=$GOARM"
GOARM_FLAGS="-X github.com/stellar/kelp/cmd.goarm=$GOARM"
echo "adding GOARM_FLAGS to ldflags: $GOARM_FLAGS"
DYNAMIC_LDFLAGS="$DYNAMIC_LDFLAGS $GOARM_FLAGS"
fi

gen_bundler_json -p $GOOS
Expand Down

0 comments on commit ad15439

Please sign in to comment.