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

fix DYNAMIC_LDFLAGS #587

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fyi @debnil

no space around the =

this was causing the DYNAMIC_LDFLAGS to not get updated on this line

fi

gen_bundler_json -p $GOOS
Expand Down