firtst release
Revision | e9e564ad59b8bd4a03e0f13b95b5122712e573e6 (tree) |
---|---|
Time | 2022-01-18 16:20:42 |
Author | fengzh <fzhlib@gmai...> |
Commiter | Kyotaro Horiguchi |
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.
@@ -43,10 +43,6 @@ TARSOURCES = Makefile *.c *.h COPYRIGHT* \ | ||
43 | 43 | doc/* expected/*.out sql/*.sql sql/maskout.sh \ |
44 | 44 | data/data.csv input/*.source output/*.source SPECS/*.spec |
45 | 45 | |
46 | -ifneq ($(shell uname), SunOS) | |
47 | -LDFLAGS+=-Wl,--build-id | |
48 | -endif | |
49 | - | |
50 | 46 | installcheck: $(REGRESSION_EXPECTED) |
51 | 47 | |
52 | 48 | rpms: rpm14 |
@@ -59,7 +59,7 @@ if [ ! -d %{_rpmdir} ]; then mkdir -p %{_rpmdir}; fi | ||
59 | 59 | ## Set variables for build environment |
60 | 60 | %build |
61 | 61 | PATH=/usr/pgsql-14/bin:$PATH |
62 | -make USE_PGXS=1 %{?_smp_mflags} | |
62 | +make USE_PGXS=1 LDFLAGS+=-Wl,--build-id %{?_smp_mflags} | |
63 | 63 | |
64 | 64 | ## Set variables for install |
65 | 65 | %install |