[Buildroot] [PATCH] postgresql: fix sparc compile issue

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun Aug 9 14:54:55 UTC 2015


Waldemar,

On Sun, 9 Aug 2015 11:41:51 +0200, Waldemar Brodkorb wrote:
> Fixes autobuilder compile error:
> http://autobuild.buildroot.net/results/f374d3535cf91f139ce80703cd2d0a2be5d3b2b1/
> 
> The predefines are wrong:
> ./output/host/usr/bin/sparc-buildroot-linux-uclibc-gcc -dM -E - </dev/null|grep sparc
> #define sparc 1
> #define __sparc__ 1
> #define __sparc 1
> #define __sparc_v8__ 1

As discussed on IRC, can you respin after using #if defined(__sparcv8)
|| defined(__sparc_v8__), so that it continue to works on Solaris (for
which __sparcv8 is defined). This way you can submit the patch upstream.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list