domoticz: fix build on powerpc64le
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 13 Feb 2017 17:24:51 +0000 (18:24 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 12 Mar 2017 22:47:31 +0000 (23:47 +0100)
commit00d2a3da72455213b87069af475173060750d50d
tree039a52e7cfbd465e167473ba7ed1eaa8b7234253
parent5f73ff5317f21f746b0e724f7e1817603a08572e
domoticz: fix build on powerpc64le

There is an issue with powerpc64le and boost::uuids::random_generator on the
following line of code (from include/boost/uuid/seed_rng.hpp):
sha.process_bytes( (unsigned char const*)&std::rand, sizeof( void(*)() ) )
This line "inspects the first couple bytes (here eight) of the std::rand
function to seed some rng. Due to the implementation of process_bytes and
inlining happening, it seems that one of the loops therein uses &rand-1 as
some boundary, compiling with -O0 makes that reloc come out as 'rand + 0' and
the link will succeed."
See: https://bugzilla.suse.com/show_bug.cgi?id=955832#c7

Fixes:
 - http://autobuild.buildroot.org/results/454c0ea393615bae2d1b44be9920f25b5c49fc33

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/domoticz/domoticz.mk