|
@@ -240,6 +240,16 @@ if grep -q ^BR2_HOSTARCH_NEEDS_IA32_COMPILER=y $BR2_CONFIG ; then
|
|
|
fi
|
|
|
fi
|
|
|
|
|
|
+if grep ^BR2_NEEDS_HOST_GCC_PLUGIN_SUPPORT=y $BR2_CONFIG ; then
|
|
|
+ if ! echo "#include <gcc-plugin.h>" | $HOSTCXX_NOCCACHE -I$($HOSTCXX_NOCCACHE -print-file-name=plugin)/include -x c++ -c - -o /dev/null ; then
|
|
|
+ echo
|
|
|
+ echo "Your Buildroot configuration needs a host compiler capable of building gcc plugins."
|
|
|
+ echo "If you're running a Debian/Ubuntu distribution, install gcc-X-plugin-dev package."
|
|
|
+ echo "For other distributions, refer to their documentation."
|
|
|
+ exit 1 ;
|
|
|
+ fi
|
|
|
+fi
|
|
|
+
|
|
|
# Check that the Perl installation is complete enough for Buildroot.
|
|
|
required_perl_modules="Data::Dumper" # Needed to build host-autoconf
|
|
|
required_perl_modules="$required_perl_modules ExtUtils::MakeMaker" # Used by host-libxml-parser-perl
|