Otherwhise we fail with CCLD glib-compile-resources CCLD gsettings CCLD gdbus CCLD gapplication CCLD gresource arm-v5te-linux-gnueabi/4.9.2/../../../../arm-v5te-linux-gnueabi/bin/ld: warning: libgmodule-2.0.so.0, needed by ./.libs/libgio-2.0.so, not found (try using -rpath or -rpath-link) ./.libs/libgio-2.0.so: undefined reference to `g_module_error' ./.libs/libgio-2.0.so: undefined reference to `g_module_close' ./.libs/libgio-2.0.so: undefined reference to `g_module_open' ./.libs/libgio-2.0.so: undefined reference to `g_module_supported' ./.libs/libgio-2.0.so: undefined reference to `g_module_symbol' collect2: error: ld returned 1 exit status make[5]: *** [glib-compile-resources] Error 1 make[5]: *** Waiting for unfinished jobs....
Signed-off-by: Robert Schwebel <[email protected]> --- ...e.am-fix-linker-error-for-glib-compile-re.patch | 36 ++++++++++++++++++++++ patches/glib-2.44.0/autogen.sh | 1 + patches/glib-2.44.0/series | 4 +++ 3 files changed, 41 insertions(+) create mode 100644 patches/glib-2.44.0/0001-gio-Makefile.am-fix-linker-error-for-glib-compile-re.patch create mode 120000 patches/glib-2.44.0/autogen.sh create mode 100644 patches/glib-2.44.0/series diff --git a/patches/glib-2.44.0/0001-gio-Makefile.am-fix-linker-error-for-glib-compile-re.patch b/patches/glib-2.44.0/0001-gio-Makefile.am-fix-linker-error-for-glib-compile-re.patch new file mode 100644 index 0000000..a822293 --- /dev/null +++ b/patches/glib-2.44.0/0001-gio-Makefile.am-fix-linker-error-for-glib-compile-re.patch @@ -0,0 +1,36 @@ +From: Robert Schwebel <[email protected]> +Date: Sun, 19 Apr 2015 19:29:08 +0200 +Subject: [PATCH] gio/Makefile.am: fix linker error for glib-compile-resources + +Linking glib-compile-resources in a cross compile environment fails with + + CCLD glib-compile-resources + CCLD gsettings + CCLD gdbus + CCLD gapplication + CCLD gresource +arm-v5te-linux-gnueabi/4.9.2/../../../../arm-v5te-linux-gnueabi/bin/ld: warning: libgmodule-2.0.so.0, needed by ./.libs/libgio-2.0.so, not found (try using -rpath or -rpath-link) +./.libs/libgio-2.0.so: undefined reference to `g_module_error' +./.libs/libgio-2.0.so: undefined reference to `g_module_close' +./.libs/libgio-2.0.so: undefined reference to `g_module_open' +./.libs/libgio-2.0.so: undefined reference to `g_module_supported' +./.libs/libgio-2.0.so: undefined reference to `g_module_symbol' +collect2: error: ld returned 1 exit status +make[5]: *** [glib-compile-resources] Error 1 +make[5]: *** Waiting for unfinished jobs.... +--- + gio/Makefile.am | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/gio/Makefile.am b/gio/Makefile.am +index 28aea41ae59c..8b05f62f665a 100644 +--- a/gio/Makefile.am ++++ b/gio/Makefile.am +@@ -707,6 +707,7 @@ bin_PROGRAMS = gio-querymodules glib-compile-schemas glib-compile-resources gset + + glib_compile_resources_LDADD = libgio-2.0.la \ + $(top_builddir)/gobject/libgobject-2.0.la \ ++ $(top_builddir)/gmodule/libgmodule-2.0.la \ + $(top_builddir)/glib/libglib-2.0.la \ + $(NULL) + diff --git a/patches/glib-2.44.0/autogen.sh b/patches/glib-2.44.0/autogen.sh new file mode 120000 index 0000000..9f8a4cb --- /dev/null +++ b/patches/glib-2.44.0/autogen.sh @@ -0,0 +1 @@ +../autogen.sh \ No newline at end of file diff --git a/patches/glib-2.44.0/series b/patches/glib-2.44.0/series new file mode 100644 index 0000000..da4cbca --- /dev/null +++ b/patches/glib-2.44.0/series @@ -0,0 +1,4 @@ +# generated by git-ptx-patches +#tag:base --start-number 1 +0001-gio-Makefile.am-fix-linker-error-for-glib-compile-re.patch +# e99fa893258dcefd38cb26350ba1d533 - git-ptx-patches magic -- 2.1.4 -- ptxdist mailing list [email protected]
