Created attachment 74287 [details]
patch to fix issue
Commit b71035ce89 (build-sys: modernize build system) changed the strpool
(which needs to be built for the build machine) compilation to use
AM_CFLAGS / AM_LDFLAGS rather than CFLAGS / LDFLAGS. This is wrong, as
The AM_ version is used TOGETHER with (the user supplied) CFLAGS/LDFLAGS,
causing strpool to use both CFLAGS (for host) and CCFLAGS_FOR_BUILD (for
build) flags, breaking cross compilation with errors like:
cc1: error: unrecognized command line option "-mabi=spe"
Instead overwrite the (user supplied) CFLAGS with the (user supplied)
CFLAGS_FOR_BUILD (and similar for LDFLAGS) like we used to do.
Signed-off-by: Peter Korsgaard <email@example.com>
I was about to post the very same patch. The reasoning given here is correct. Please apply this.
on Sep 25, 2016 at 15:48:28.
(provided by the Example extension).