Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] support/misc/toolchainfile.cmake.in: set PKG_CONFIG/CMAKE prefix paths
@ 2022-07-28  1:44 James Hilliard
  2022-07-28  1:44 ` [Buildroot] [PATCH 2/2] package/pkg-meson: generate relocatable pkgconfigs James Hilliard
  2023-01-11 15:19 ` [Buildroot] [PATCH 1/2] support/misc/toolchainfile.cmake.in: set PKG_CONFIG/CMAKE prefix paths Romain Naour
  0 siblings, 2 replies; 12+ messages in thread
From: James Hilliard @ 2022-07-28  1:44 UTC (permalink / raw)
  To: buildroot; +Cc: Eric Le Bihan, James Hilliard, Samuel Martin

These appear to not be getting set correctly and are needed when using
meson's relocatable pkgconfig format.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
 support/misc/toolchainfile.cmake.in | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/support/misc/toolchainfile.cmake.in b/support/misc/toolchainfile.cmake.in
index 5d2b8695b4..2c6adfd02d 100644
--- a/support/misc/toolchainfile.cmake.in
+++ b/support/misc/toolchainfile.cmake.in
@@ -91,6 +91,12 @@ endif()
 if(NOT DEFINED CMAKE_FIND_ROOT_PATH_MODE_INCLUDE)
   set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
 endif()
+if(NOT DEFINED PKG_CONFIG_USE_CMAKE_PREFIX_PATH)
+  set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH ON)
+endif()
+if(NOT DEFINED CMAKE_PREFIX_PATH)
+  set(CMAKE_PREFIX_PATH "${RELOCATED_HOST_DIR}/@@STAGING_SUBDIR@@/usr")
+endif()
 set(ENV{PKG_CONFIG_SYSROOT_DIR} "${RELOCATED_HOST_DIR}/@@STAGING_SUBDIR@@")
 
 # This toolchain file can be used both inside and outside Buildroot.
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2023-01-28  1:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-28  1:44 [Buildroot] [PATCH 1/2] support/misc/toolchainfile.cmake.in: set PKG_CONFIG/CMAKE prefix paths James Hilliard
2022-07-28  1:44 ` [Buildroot] [PATCH 2/2] package/pkg-meson: generate relocatable pkgconfigs James Hilliard
2023-01-11 15:30   ` Romain Naour
2023-01-28  0:35     ` James Hilliard
2023-01-11 18:15   ` Yann E. MORIN
2023-01-28  1:01     ` James Hilliard
2023-01-11 15:19 ` [Buildroot] [PATCH 1/2] support/misc/toolchainfile.cmake.in: set PKG_CONFIG/CMAKE prefix paths Romain Naour
2023-01-11 16:01   ` Nicolas Cavallari
2023-01-11 16:12     ` Romain Naour
2023-01-11 16:44     ` Yann E. MORIN
2023-01-11 17:35       ` Nicolas Cavallari
2023-01-11 18:36         ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox