[Buildroot] [PATCH v1 1/2] package/gtest: fix gtest.pc/gmock.pc library names for the debug build

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sun Oct 24 14:02:43 UTC 2021


On Fri, 22 Oct 2021 21:07:01 +0200
Peter Seiderer <ps.report at gmx.net> wrote:

> Fixes:
> 
>    - http://autobuild.buildroot.org/results/e1bb8aa1de310f3d27b74ec7d8748d170ad444e2
> 
>   >>> libcamera 40f5fddca7f774944a53f58eeaebc4db79c373d8 Building  
>   [...]
>   [114/123] Linking target src/lc-compliance/lc-compliance
>   FAILED: src/lc-compliance/lc-compliance
>   [...]
>   .../host/lib/gcc/arm-buildroot-linux-uclibcgnueabi/10.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: cannot find -lgtest
> 
> Signed-off-by: Peter Seiderer <ps.report at gmx.net>
> ---
>  ...test.pc-gmock.pc-library-names-for-t.patch | 62 +++++++++++++++++++
>  1 file changed, 62 insertions(+)
>  create mode 100644 package/gtest/0001-pkg-config-fix-gtest.pc-gmock.pc-library-names-for-t.patch

Series applied, thanks! To be honest, I always found it very weird this
choice of some upstream project to have a different library name
depending on whether it is built with/without debug. But oh well, if
that's how gtest wants it...

Note that you have to sign the Google CLA if you want them to consider
your patch on gtest.

Thanks!

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


More information about the buildroot mailing list