[packages/postgresql] - x32 buildfixes
adamg
adamg at pld-linux.org
Fri Oct 26 07:15:12 CEST 2018
commit 579178c8b63b906660ec600511964c5b8bb63ae0
Author: Adam Gołębiowski <adamg at 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
More information about the pld-cvs-commit
mailing list