pkgconfig.md (googletest-release-1.11.0) | : | pkgconfig.md (googletest-release-1.12.0) | ||
---|---|---|---|---|
skipping to change at line 108 | skipping to change at line 108 | |||
reasons why this stripping needs to occur usually). | reasons why this stripping needs to occur usually). | |||
If you look at the generated pkg-config file, it will look something like | If you look at the generated pkg-config file, it will look something like | |||
``` | ``` | |||
libdir=/usr/lib64 | libdir=/usr/lib64 | |||
includedir=/usr/include | includedir=/usr/include | |||
Name: gtest | Name: gtest | |||
Description: GoogleTest (without main() function) | Description: GoogleTest (without main() function) | |||
Version: 1.10.0 | Version: 1.11.0 | |||
URL: https://github.com/google/googletest | URL: https://github.com/google/googletest | |||
Libs: -L${libdir} -lgtest -lpthread | Libs: -L${libdir} -lgtest -lpthread | |||
Cflags: -I${includedir} -DGTEST_HAS_PTHREAD=1 -lpthread | Cflags: -I${includedir} -DGTEST_HAS_PTHREAD=1 -lpthread | |||
``` | ``` | |||
Notice that the sysroot is not included in `libdir` and `includedir`! If you try | Notice that the sysroot is not included in `libdir` and `includedir`! If you try | |||
to run `pkg-config` with the correct | to run `pkg-config` with the correct | |||
`PKG_CONFIG_LIBDIR=/home/MYUSER/sysroot/usr/lib64/pkgconfig` against this `.pc` | `PKG_CONFIG_LIBDIR=/home/MYUSER/sysroot/usr/lib64/pkgconfig` against this `.pc` | |||
file, you will get | file, you will get | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |