Skip to content

Commit 68dbc35

Browse files
wesmclaude
andcommitted
Fix Linux build: install libstdc++-static and link C++ stdlib
DuckDB's static library requires libstdc++. Install libstdc++-static in the Rocky Linux container and pass -lstdc++ -lm via CGO_LDFLAGS. Also disable fail-fast so both arch builds run independently. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent ffcf994 commit 68dbc35

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ permissions:
1111
jobs:
1212
build-linux:
1313
strategy:
14+
fail-fast: false
1415
matrix:
1516
include:
1617
- goarch: amd64
@@ -26,7 +27,7 @@ jobs:
2627
steps:
2728
- name: Install build tools
2829
run: |
29-
dnf install -y gcc gcc-c++ make git tar gzip file
30+
dnf install -y gcc gcc-c++ make git tar gzip file libstdc++-static
3031
3132
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3233

@@ -44,6 +45,7 @@ jobs:
4445
GOOS: linux
4546
GOARCH: ${{ matrix.goarch }}
4647
CGO_ENABLED: '1'
48+
CGO_LDFLAGS: '-lstdc++ -lm'
4749
run: |
4850
export PATH="/usr/local/go/bin:$HOME/go/bin:$PATH"
4951
VERSION=${GITHUB_REF#refs/tags/v}

0 commit comments

Comments
 (0)