[Buildroot] [PATCH 1/1] package/gflags: force Release mode

Rahul Bedarkar rahulbedarkar89 at gmail.com
Mon Apr 27 07:28:18 UTC 2020


On Sat, Apr 25, 2020 at 9:51 PM Fabrice Fontaine
<fontaine.fabrice at gmail.com> wrote:
>
> Force Release otherwise libraries will be suffixed by _debug which will raise
> unexpected build failures with packages that use gflags (e.g. rocksdb)
>
> Fixes:
>  - http://autobuild.buildroot.org/results/3545774258babc3584f69e7d523efdf7fff1acb5
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
> ---
>  package/gflags/gflags.mk | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/package/gflags/gflags.mk b/package/gflags/gflags.mk
> index c4fce45b3e..f32869f70d 100644
> --- a/package/gflags/gflags.mk
> +++ b/package/gflags/gflags.mk
> @@ -10,8 +10,12 @@ GFLAGS_INSTALL_STAGING = YES
>  GFLAGS_LICENSE = BSD-3-Clause
>  GFLAGS_LICENSE_FILES = COPYING.txt
>
> +# Force Release otherwise libraries will be suffixed by _debug which will raise
> +# unexpected build failures with packages that use gflags (e.g. rocksdb)
> +GFLAGS_CONF_OPTS = -DCMAKE_BUILD_TYPE=Release

I think pkgconfig can solve this problem. Rocksdb has CMake support
which uses pkgconfig to find gflags.

Regards,
Rahul

> +
>  ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
> -GFLAGS_CONF_OPTS = -DBUILD_gflags_LIB=OFF \
> +GFLAGS_CONF_OPTS += -DBUILD_gflags_LIB=OFF \
>         -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -DNO_THREADS"
>  endif
>
> --
> 2.25.1
>



More information about the buildroot mailing list