• R/O
  • HTTP
  • SSH
  • HTTPS

pg_hint_plan: Commit

firtst release


Commit MetaInfo

Revisione9e564ad59b8bd4a03e0f13b95b5122712e573e6 (tree)
Time2022-01-18 16:20:42
Authorfengzh <fzhlib@gmai...>
CommiterKyotaro Horiguchi

Log Message

Add LD option --build-id only at RPM-build time

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.

Change Summary

Incremental Difference

--- a/Makefile
+++ b/Makefile
@@ -43,10 +43,6 @@ TARSOURCES = Makefile *.c *.h COPYRIGHT* \
4343 doc/* expected/*.out sql/*.sql sql/maskout.sh \
4444 data/data.csv input/*.source output/*.source SPECS/*.spec
4545
46-ifneq ($(shell uname), SunOS)
47-LDFLAGS+=-Wl,--build-id
48-endif
49-
5046 installcheck: $(REGRESSION_EXPECTED)
5147
5248 rpms: rpm14
--- a/SPECS/pg_hint_plan14.spec
+++ b/SPECS/pg_hint_plan14.spec
@@ -59,7 +59,7 @@ if [ ! -d %{_rpmdir} ]; then mkdir -p %{_rpmdir}; fi
5959 ## Set variables for build environment
6060 %build
6161 PATH=/usr/pgsql-14/bin:$PATH
62-make USE_PGXS=1 %{?_smp_mflags}
62+make USE_PGXS=1 LDFLAGS+=-Wl,--build-id %{?_smp_mflags}
6363
6464 ## Set variables for install
6565 %install
Show on old repository browser