Il 18/11/2012 00:54, H.J. Lu ha scritto:
> +@if gcc-bootstrap
> +ifneq ($(filter bootstrap-asan,$(BUILD_CONFIG)),)
> +LIBASAN_LIBS=-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/.libs
> +endif
> +@endif gcc-bootstrap

Do you need this to be here?  POSTSTAGE1_*_EXPORT is only used when
bootstrapping, and they are defined with "=" so the definition could be
placed (or so it seems at first look) in bootstrap-asan.mk.

Paolo

>  # This is the list of variables to export in the environment when
>  # configuring any subdirectory.  It must also be exported whenever
>  # recursing into a build directory in case that directory's Makefile
> @@ -242,6 +248,7 @@ POSTSTAGE1_CXX_EXPORT = \
>         -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ -nostdinc++ \
>         -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
>         -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \
> +       $(LIBASAN_LIBS) \
>         -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR) \
>         -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include \
>         -I$$s/libstdc++-v3/libsupc++ \
> @@ -256,6 +263,7 @@ POSTSTAGE1_HOST_EXPORTS = \
>       $(HOST_EXPORTS) \
>       CC="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
>         -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ \
> +       $(LIBASAN_LIBS) \
>         $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
>       CC_FOR_BUILD="$$CC"; export CC_FOR_BUILD; \
>       $(POSTSTAGE1_CXX_EXPORT) \

Reply via email to