File Makefile of Package failed_pgvector

# Makefile for building the pgvector PostgreSQL extension
# Minimal, standard PGXS-based Makefile with a small patch to remove
# -march=native from CFLAGS which is invalid for riscv toolchains.
#
# This change is intentionally small and only removes the single token
# "-march=native" from CFLAGS so the package can be built on riscv64
# builders where the ISA string must begin with "rv32" or "rv64".

MODULES = pgvector
EXTENSION = pgvector
DATA = sql/pgvector--0.8.0.sql

PG_CONFIG ?= pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)

# Remove -march=native which is invalid for RISC-V cross/target toolchains.
# This is done early, before including PGXS so that the sanitized CFLAGS
# are used by the PGXS build rules.
ifneq (,$(findstring -march=native,$(CFLAGS)))
CFLAGS := $(filter-out -march=native,$(CFLAGS))
endif

include $(PGXS)
openSUSE Build Service is sponsored by