Skip to content

fix(pgvector): disable optimization flags for build compatibility#1

Merged
tonychang04 merged 3 commits intomainfrom
release/v15.13.1
Jan 15, 2026
Merged

fix(pgvector): disable optimization flags for build compatibility#1
tonychang04 merged 3 commits intomainfrom
release/v15.13.1

Conversation

@tonychang04
Copy link
Contributor

Add OPTFLAGS="" to pgvector make command to fix build issues.

pgvector's default OPTFLAGS includes CPU-specific optimization flags (like -march=native) that can cause problems disabled it

🤖 Generated with Claude Code

Add OPTFLAGS="" to pgvector make command to fix build issues.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@tonychang04 tonychang04 requested a review from jwfing December 25, 2025 01:03
- Add pg_net v0.14.0 build step using cargo-pgrx
- Add libcurl4 runtime dependency
- Update CLAUDE.md documentation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
pg_net is a C extension using libcurl, not a Rust/pgrx extension.
- Add libcurl4-openssl-dev build dependency
- Use make/make install instead of cargo pgrx
- Add CFLAGS="-Wno-error" for compatibility with newer compilers
- Update COPY pattern to handle versioned .so files

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@tonychang04 tonychang04 merged commit 8e24e97 into main Jan 15, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants