OSDN Git Service

Add LD option --build-id only at RPM-build time
[pghintplan/pg_hint_plan.git] / SPECS / pg_hint_plan14.spec
index 26da951..fef6334 100644 (file)
@@ -59,7 +59,7 @@ if [ ! -d %{_rpmdir} ]; then mkdir -p %{_rpmdir}; fi
 ## 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