[Buildroot] [PATCH 2/2] toolchain-external: install libsanitizer libraries if available
Jan Kundrát
jan.kundrat at cesnet.cz
Tue Jul 4 07:57:22 UTC 2017
On pondělí 3. července 2017 23:58:03 CEST, Peter Korsgaard wrote:
> Gcc builds libsanitizer (lib{a,l,t,u}san) for
> -fsanitize={address,thread,leak,undefined} if the needed dependencies are
> available, so ensure these also gets copied to the target fs to support
> -fsanitize.
>
> Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
Tested on Linaro 2017.02 for beaglebone black, it appears to work.
Reviewed-by: Jan Kundrát <jan.kundrat at cesnet.cz>
Tested-by: Jan Kundrát <jan.kundrat at cesnet.cz>
> ---
> toolchain/toolchain-external/pkg-toolchain-external.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git
> a/toolchain/toolchain-external/pkg-toolchain-external.mk
> b/toolchain/toolchain-external/pkg-toolchain-external.mk
> index 8460e37d09..0764b379b5 100644
> --- a/toolchain/toolchain-external/pkg-toolchain-external.mk
> +++ b/toolchain/toolchain-external/pkg-toolchain-external.mk
> @@ -108,7 +108,7 @@ endif
> # Definitions of the list of libraries that should be copied to the target.
> #
> ifeq ($(BR2_TOOLCHAIN_EXTERNAL_GLIBC)$(BR2_TOOLCHAIN_EXTERNAL_UCLIBC),y)
> -TOOLCHAIN_EXTERNAL_LIBS += libatomic.so.* libc.so.*
> libcrypt.so.* libdl.so.* libgcc_s.so.* libm.so.* libnsl.so.*
> libresolv.so.* librt.so.* libutil.so.*
> +TOOLCHAIN_EXTERNAL_LIBS += libatomic.so.* libc.so.*
> libcrypt.so.* libdl.so.* libgcc_s.so.* libm.so.* libnsl.so.*
> libresolv.so.* librt.so.* libutil.so.* lib?san.so.*
> ifeq ($(BR2_TOOLCHAIN_EXTERNAL_GLIBC)$(BR2_ARM_EABIHF),yy)
> TOOLCHAIN_EXTERNAL_LIBS += ld-linux-armhf.so.*
> else
More information about the buildroot
mailing list