[Buildroot] [PATCH] package/ntp: fix aarch64/mips build, -fPIC required

Vicente Olivert Riera Vincent.Riera at imgtec.com
Thu May 18 09:02:26 UTC 2017


Hi Romain and Thomas,

thank you very much for fixing this! It's sad that we have to use such
kind of hacks or patches to fix something that shouldn't happen at all,
since the ntp configure script can accept --with-pic=yes.

Anyway, glad to see this fixed :-) Thanks again!

Vincent

On 17/05/17 20:48, Thomas Petazzoni wrote:
> Hello,
> 
> On Sat, 13 May 2017 23:49:17 +0200, Romain Naour wrote:
> 
>> +# ntp build unconditionnaly some static libraries (libntpq.a, libntp.a etc...)
>> +# The build system fail to create ntpsnmpd while linking these libraries when
>> +# built without -fPIC.
>> +NTP_CONF_ENV += \
>> +	CFLAGS="-fPIC $(TARGET_CFLAGS)"
> 
> Thanks for this analysis. However, I was a bit surprised by your patch,
> because I saw many -fPIC all over the place in the ntp build log, even
> without your patch.
> 
> So I dug a little bit deeper, and found this Gentoo patch
> https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=494143c3b4921a5c8b8596d58f2c8b98296bf688,
> which simply re-adds the proper flags to just the ntpq module. And this
> does indeed solve the issue.
> 
> So I've instead committed a patch that adds the Gentoo patch. Thanks
> anyway for your initial analysis, it was very useful to understand what
> was going on.
> 
> Best regards,
> 
> Thomas
> 



More information about the buildroot mailing list