[Buildroot] [PATCH v2 3/4] package/libodb-boost: add host variant

Arnout Vandecappelle arnout at mind.be
Mon Mar 21 21:01:40 UTC 2022



On 10/03/2022 10:56, Kamel Bouhara via buildroot wrote:
> Add host variant of libodb-boost required by the ODB compiler.
> The libodb-boost headers are needed at compile time, and
> therefore installed in $(HOST_DIR).
> 
> Signed-off-by: Kamel Bouhara <kamel.bouhara at bootlin.com>
> ---
>   package/libodb-boost/libodb-boost.mk | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/package/libodb-boost/libodb-boost.mk b/package/libodb-boost/libodb-boost.mk
> index bac5f1e78f..39c9f91030 100644
> --- a/package/libodb-boost/libodb-boost.mk
> +++ b/package/libodb-boost/libodb-boost.mk
> @@ -12,6 +12,8 @@ LIBODB_BOOST_INSTALL_STAGING = YES
>   LIBODB_BOOST_LICENSE = GPL-2.0
>   LIBODB_BOOST_LICENSE_FILES = LICENSE
>   LIBODB_BOOST_DEPENDENCIES = boost libodb
> +HOST_LIBODB_BOOST_DEPENDENCIES = hoost-boost host-libodb
>   LIBODB_BOOST_CONF_ENV = CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11"

  I have not double-checked (since I don't know for which GCC version exactly 
this -std=c++11 is needed), but I expect that if -std=c++11 is needed for target 
build, it's also going to be needed for host build. So I added 
HOST_LIBODB_BOOST_CONF_ENV.


  Series applied to master with that fixed, thanks.

  Regards,
  Arnout


>   
>   $(eval $(autotools-package))
> +$(eval $(host-autotools-package))



More information about the buildroot mailing list