diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-05-02 10:42:19 -0700 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2022-05-17 05:57:10 -0700 |
commit | 947ff549c93c745bedcfbdbfd6ee1a84fbe72cbf (patch) | |
tree | a58580dcc539f7120f7f06520e8fc1c9ad6b311c | |
parent | 9f4bdefa4153c9a07306c9729418dad7603a1eb7 (diff) | |
download | meta-openembedded-947ff549c93c745bedcfbdbfd6ee1a84fbe72cbf.tar.gz |
evolution-data-server: Do not pass --library-path to gir compiler
This is using LIB_INSTALL_DIR which is pointing to target libdir e.g.
/usr/lib which is essentially a path inside sysroot but when passing it
via --library-path, it ends up adding this to linker commandline via
LD_LIBRARY_PATH and -rpath options which is flagged by gcc correctly as
arm-yoe-linux-gnueabi/12.0.1/ld: warning: library search path "/usr/lib" is unsafe for cross-compilation
| /usr/lib/libgio-2.0.so: file not recognized: file format not recognized
| collect2: error: ld returned 1 exit status
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Andreas Müller <schnitzeltony@gmail.com>
(cherry picked from commit 578b9996891e0990b507efd635667339cbd101dd)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server/0001-cmake-Do-not-export-CC-into-gir-compiler.patch | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server/0001-cmake-Do-not-export-CC-into-gir-compiler.patch b/meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server/0001-cmake-Do-not-export-CC-into-gir-compiler.patch index 8fd077cedc..fda84acae7 100644 --- a/meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server/0001-cmake-Do-not-export-CC-into-gir-compiler.patch +++ b/meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server/0001-cmake-Do-not-export-CC-into-gir-compiler.patch | |||
@@ -1,6 +1,6 @@ | |||
1 | --- a/cmake/modules/GObjectIntrospection.cmake 2022-03-06 18:10:47.724184883 +0100 | 1 | --- a/cmake/modules/GObjectIntrospection.cmake |
2 | +++ b/cmake/modules/GObjectIntrospection.cmake 2022-03-06 18:10:12.560450948 +0100 | 2 | +++ b/cmake/modules/GObjectIntrospection.cmake |
3 | @@ -122,9 +122,7 @@ | 3 | @@ -122,9 +122,7 @@ macro(gir_add_introspection gir) |
4 | file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/${_gir_name}_files "${_gir_files}") | 4 | file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/${_gir_name}_files "${_gir_files}") |
5 | 5 | ||
6 | add_custom_command( | 6 | add_custom_command( |
@@ -11,3 +11,11 @@ | |||
11 | ${INTROSPECTION_SCANNER_ARGS} | 11 | ${INTROSPECTION_SCANNER_ARGS} |
12 | --namespace=${_gir_namespace} | 12 | --namespace=${_gir_namespace} |
13 | --nsversion=${_gir_version} | 13 | --nsversion=${_gir_version} |
14 | @@ -240,7 +238,6 @@ macro(gir_add_introspection_simple gir_l | ||
15 | ${_gir_identifies_prefixes} | ||
16 | ${_gir_deps} | ||
17 | --add-include-path=${SHARE_INSTALL_PREFIX}/gir-1.0 | ||
18 | - --library-path=${LIB_INSTALL_DIR} | ||
19 | ${_extra_library_path} | ||
20 | --pkg-export ${pkg_export_prefix}-${gir_library_version} | ||
21 | --c-include=${c_include} | ||