That option harms not only SunOS but also BSDs. It is required by
rpmbuild so it is sensible to move the option from Makefile to SPEC
file.
doc/* expected/*.out sql/*.sql sql/maskout.sh \
data/data.csv input/*.source output/*.source SPECS/*.spec
-ifneq ($(shell uname), SunOS)
-LDFLAGS+=-Wl,--build-id
-endif
-
installcheck: $(REGRESSION_EXPECTED)
rpms: rpm14
## Set variables for build environment
%build
PATH=/usr/pgsql-14/bin:$PATH
-make USE_PGXS=1 %{?_smp_mflags}
+make USE_PGXS=1 LDFLAGS+=-Wl,--build-id %{?_smp_mflags}
## Set variables for install
%install