]> git.pld-linux.org Git - packages/postgresql.git/commitdiff
- x32 buildfixes
authorAdam Gołębiowski <adamg@pld-linux.org>
Fri, 26 Oct 2018 05:15:00 +0000 (07:15 +0200)
committerAdam Gołębiowski <adamg@pld-linux.org>
Fri, 26 Oct 2018 05:15:00 +0000 (07:15 +0200)
postgresql.spec

index 231c3e0635f371a05557e04a5ffc993f3b5d1d26..7cca6c2d36ff411e9cb16dd94c11e3ac1aba67bb 100644 (file)
@@ -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} \
This page took 0.175488 seconds and 4 git commands to generate.