Skip to content

Commit

Permalink
Remove duplicated LDFLAGS definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
fasmat committed Oct 9, 2024
1 parent 9afdc16 commit 3650f54
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 9 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,16 +138,17 @@ jobs:
cp ./cmd/postcli/README.md ./build/
- name: Set name of release archive
shell: bash
id: release-name
run: |
if [[ ${{ runner.arch }} == "ARM64" ]]; then
echo "OUTNAME=${{ runner.os }}_${{ runner.arch }}" >> $GITHUB_ENV
echo "name=${{ runner.os }}_${{ runner.arch }}" >> "$GITHUB_OUTPUT"
else
echo "OUTNAME=${{ runner.os }}" >> $GITHUB_ENV
echo "name=${{ runner.os }}" >> "$GITHUB_OUTPUT"
fi
- name: Archive postcli artifacts
uses: actions/upload-artifact@v4
with:
name: postcli-${{ env.OUTNAME }}.zip
name: postcli-${{ steps.release-name.outputs.name }}.zip
path: ./build/*
if-no-files-found: error

Expand Down
2 changes: 1 addition & 1 deletion Makefile.Inc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ else
else
platform := macos
endif
CGO_LDFLAGS := $(CGO_LDFLAGS) -Wl,-rpath,@loader_path
export GOFLAGS := '-ldflags=-extldflags=-Wl,-ld_classic'
else
ifeq ($(GOARCH),arm64)
platform := linux-arm64
Expand Down
1 change: 0 additions & 1 deletion internal/postrs/initializer.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package postrs

// #cgo LDFLAGS: -lpost
// #include <stdlib.h>
// #include "post.h"
import "C"
Expand Down
1 change: 0 additions & 1 deletion internal/postrs/log.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package postrs

// #cgo LDFLAGS: -lpost
// #include <stdlib.h>
// #include "post.h"
//
Expand Down
1 change: 0 additions & 1 deletion internal/postrs/pos_verifier.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package postrs

// #cgo LDFLAGS: -lpost
// #include <stdlib.h>
// #include "post.h"
import "C"
Expand Down
1 change: 0 additions & 1 deletion internal/postrs/proof.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package postrs

// #cgo LDFLAGS: -lpost
// #include <stdlib.h>
// #include "post.h"
import "C"
Expand Down
1 change: 0 additions & 1 deletion internal/postrs/version_check.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package postrs

// #cgo LDFLAGS: -lpost
// #include "post.h"
import "C"

Expand Down

0 comments on commit 3650f54

Please sign in to comment.