From 4b7fb615be2aba24d2db2c01b2014c4c7e9ddaa5 Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Tue, 18 Aug 2020 23:50:16 +0000 Subject: [PATCH] Use Make macros --- postgresql-pgpool-II.spec | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/postgresql-pgpool-II.spec b/postgresql-pgpool-II.spec index 9bc3c38..773cc12 100644 --- a/postgresql-pgpool-II.spec +++ b/postgresql-pgpool-II.spec @@ -95,14 +95,14 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool # GCC 10 defaults to -fno-common which # https://gcc.gnu.org/gcc-10/changes.html (see C section) -make %{?_smp_mflags} CFLAGS="%{optflags} -fcommon" -make %{?_smp_mflags} CFLAGS="%{optflags} -fcommon" -C src/sql/pgpool-recovery -make %{?_smp_mflags} CFLAGS="%{optflags} -fcommon" -C src/sql/pgpool-regclass +%make_build CFLAGS="%{optflags} -fcommon" +%make_build CFLAGS="%{optflags} -fcommon" -C src/sql/pgpool-recovery +%make_build CFLAGS="%{optflags} -fcommon" -C src/sql/pgpool-regclass %install -make %{?_smp_mflags} DESTDIR=%{buildroot} install -make %{?_smp_mflags} DESTDIR=%{buildroot} install -C src/sql/pgpool-recovery -make %{?_smp_mflags} DESTDIR=%{buildroot} install -C src/sql/pgpool-regclass +%make_install +%make_install -C src/sql/pgpool-recovery +%make_install -C src/sql/pgpool-regclass install -d %{buildroot}%{_datadir}/%{short_name} install -d %{buildroot}%{_sysconfdir}/%{short_name}