Re: relocation truncated to fit: citus build failure on s390x

Christoph Berg <myon@debian.org>

From: Christoph Berg <myon@debian.org>
To: Andres Freund <andres@anarazel.de>, Jason Petersen <jason@citusdata.com>, pgsql-pkg-debian@postgresql.org, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2016-04-30T20:12:21Z
Lists: pgsql-hackers
Re: To Andres Freund 2016-04-28 <20160428080824.GA22412@msg.df7cb.de>
> I'm not an expert in compiler flags, but it seems to me CFLAGS_SL is
> wrong on s390(x) in Makefile.port, it should use -fPIC like sparc.
> 
> (The m68k build has yet to happen, I'd guess it would exhibit the same
> problem.)

Fwiw, the m68k build finished successfully with -fpic:
https://buildd.debian.org/status/fetch.php?pkg=citus&arch=m68k&ver=5.0.1-1&stamp=1461978369

Christoph


Commits

  1. Always use -fPIC, not -fpic, when building shared libraries with gcc.