[OE-core] [PATCH 1/1] autotools: do more cleanup when in do_configure

Burton, Ross ross.burton at intel.com
Mon Sep 10 10:24:42 UTC 2018


On 10 September 2018 at 11:02, Chen Qi <Qi.Chen at windriver.com> wrote:
> I met the following error when compiling some projects.
>
> | configure: error: `LDFLAGS' has changed since the previous run:
> | configure:   former value:  `-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed'
> | configure:   current value: `-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now'
> [snip]
> | configure: error: changes in the environment can compromise the build
> | configure: error: run `make distclean' and/or `rm .././config.cache' and start over
>
> I think when some recipe inherits autotools-brokensep, it should try to
> do more cleanups before configure. So also do 'make distclean' and remove
> config.cache just as what the error message told us.

Does just removing config.cache work for your problem?  I'm concerned
about running a distclean because some upstreams abuse that target and
then can't rebuild.

Also obviously the proper fix is to not use autotools-brokensep in the
recipe in the first place.

Ross



More information about the Openembedded-core mailing list