commit 579178c8b63b906660ec600511964c5b8bb63ae0 Author: Adam Gołębiowski <ad...@pld-linux.org> Date: Fri Oct 26 07:15:00 2018 +0200
- x32 buildfixes postgresql.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) --- diff --git a/postgresql.spec b/postgresql.spec index 231c3e0..7cca6c2 100644 --- a/postgresql.spec +++ b/postgresql.spec @@ -786,11 +786,16 @@ find src -name \*.l -o -name \*.y | xargs touch #find contrib -type d -name CVS -exec rm -rf {} \; %build +%ifarch x32 +march="-mx32" +%endif %{__aclocal} -I config %{__autoconf} %{__autoheader} %configure \ - CFLAGS="%{rpmcflags} -DNEED_REENTRANT_FUNCS `uuid-config --cflags`" \ + CFLAGS="%{rpmcflags} $march -DNEED_REENTRANT_FUNCS `uuid-config --cflags`" \ + CPPFLAGS="%{rpmcppflags} $march" \ + CXXFLAGS="%{rpmcxxflags} $march" \ --disable-rpath \ --enable-depend \ %{?with_systemtap:--enable-dtrace} \ ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/postgresql.git/commitdiff/579178c8b63b906660ec600511964c5b8bb63ae0 _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit