All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/gflags: force Release mode
@ 2020-04-25 16:22 Fabrice Fontaine
  2020-04-25 19:29 ` Thomas Petazzoni
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Fabrice Fontaine @ 2020-04-25 16:22 UTC (permalink / raw)
  To: buildroot

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@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
+
 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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/1] package/gflags: force Release mode
  2020-04-25 16:22 [Buildroot] [PATCH 1/1] package/gflags: force Release mode Fabrice Fontaine
@ 2020-04-25 19:29 ` Thomas Petazzoni
  2020-04-27  7:28 ` Rahul Bedarkar
  2020-05-08 10:08 ` Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2020-04-25 19:29 UTC (permalink / raw)
  To: buildroot

On Sat, 25 Apr 2020 18:22:44 +0200
Fabrice Fontaine <fontaine.fabrice@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@gmail.com>
> ---
>  package/gflags/gflags.mk | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/1] package/gflags: force Release mode
  2020-04-25 16:22 [Buildroot] [PATCH 1/1] package/gflags: force Release mode Fabrice Fontaine
  2020-04-25 19:29 ` Thomas Petazzoni
@ 2020-04-27  7:28 ` Rahul Bedarkar
  2020-05-08 10:08 ` Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Rahul Bedarkar @ 2020-04-27  7:28 UTC (permalink / raw)
  To: buildroot

On Sat, Apr 25, 2020 at 9:51 PM Fabrice Fontaine
<fontaine.fabrice@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@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
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/1] package/gflags: force Release mode
  2020-04-25 16:22 [Buildroot] [PATCH 1/1] package/gflags: force Release mode Fabrice Fontaine
  2020-04-25 19:29 ` Thomas Petazzoni
  2020-04-27  7:28 ` Rahul Bedarkar
@ 2020-05-08 10:08 ` Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2020-05-08 10:08 UTC (permalink / raw)
  To: buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > 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@gmail.com>

Committed to 2020.02.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-05-08 10:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-25 16:22 [Buildroot] [PATCH 1/1] package/gflags: force Release mode Fabrice Fontaine
2020-04-25 19:29 ` Thomas Petazzoni
2020-04-27  7:28 ` Rahul Bedarkar
2020-05-08 10:08 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.