buildrootschalter/toolchain
Thomas Petazzoni 5aa205eba4 toolchain-external: instrument wrapper to warn about unsafe paths
The CodeSourcery toolchains have a very interesting feature: they warn
the user when an unsafe header or library path is used, i.e a path
that will lead host headers or libraries to leak into the build.

This commit adds a similar functionality into our external toolchain
wrapper, so that it can be used with all external toolchains, and can
also be tuned as needed. By default, the external toolchain wrapper
now gives warnings such as:

  arm-linux-gcc: WARNING: unsafe header/library path used in cross-compilation: '-I /usr/foo'
  arm-linux-gcc: WARNING: unsafe header/library path used in cross-compilation: '-L /usr/bleh'

but the compilation continues successfully. One can then easily grep
in his build log to search for occurences of this message.

Optionally, if BR_COMPILER_PARANOID_UNSAFE_PATH is defined in the
environment to a non empty value, the external wrapper will instead
error out and abort the compilation.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: Romain Naour <romain.naour@openwide.fr>
Tested-by: Romain Naour <romain.naour@openwide.fr>
2014-12-11 00:05:52 +01:00
..
toolchain toolchain/toolchain-buildroot: migrate to virtual package infrastructure 2014-06-14 19:10:13 +02:00
toolchain-buildroot toolchain/musl: disable for PowerPC SPE 2014-09-13 22:02:01 +02:00
toolchain-external toolchain-external: instrument wrapper to warn about unsafe paths 2014-12-11 00:05:52 +01:00
Config.in toolchain: enable internal for aarch64 2014-04-24 15:21:13 +02:00
helpers.mk package: indentation cleanup 2014-10-23 22:13:29 +02:00
toolchain-common.in toolchain: add 3.18 choice for headers 2014-12-08 13:10:30 +01:00
toolchain.mk system/skeleton: make nsswitch install conditional 2014-10-25 12:48:17 +02:00