diff options
author | Ting-Wei Lan | 2021-09-25 02:49:47 +0800 |
---|---|---|
committer | Ting-Wei Lan | 2021-09-25 02:49:47 +0800 |
commit | 1f20bc9a4d928a4bc1f1724472992ff6f86cd15d (patch) | |
tree | 68edb230dc5dfee2d6e285f2a7a160a3c35fb2b0 /gtk3-merge-3991-fix-autotools-build.patch | |
parent | 7f9c79ce5c1bedb1d6822583d7c3caeaff36f9cc (diff) | |
download | aur-1f20bc9a4d928a4bc1f1724472992ff6f86cd15d.tar.gz |
mingw-w64-gtk3: 3.24.29 -> 3.24.30
Diffstat (limited to 'gtk3-merge-3991-fix-autotools-build.patch')
-rw-r--r-- | gtk3-merge-3991-fix-autotools-build.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/gtk3-merge-3991-fix-autotools-build.patch b/gtk3-merge-3991-fix-autotools-build.patch new file mode 100644 index 000000000000..38f4cd6c9709 --- /dev/null +++ b/gtk3-merge-3991-fix-autotools-build.patch @@ -0,0 +1,43 @@ +From 26d61e2abc22707e628045b1c33ea9930e8ca0dc Mon Sep 17 00:00:00 2001 +From: Ting-Wei Lan <lantw@src.gnome.org> +Date: Fri, 24 Sep 2021 00:06:51 +0800 +Subject: [PATCH] GDK/Win32: Fix MinGW autotools build + +MinGW-w64 CRT provides no 'hid.lib' file. Instead, it has 'libhid.a' +which can be linked with '-lhid' linker argument. + +Also, we have to declare the '_LIBADD' variable and add 'LDADDS' to it, +or 'LDADDS' won't do anything for the build. + +https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/3991 +--- + gdk/win32/Makefile.am | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/gdk/win32/Makefile.am b/gdk/win32/Makefile.am +index 5fe1289570..21f4579192 100644 +--- a/gdk/win32/Makefile.am ++++ b/gdk/win32/Makefile.am +@@ -22,7 +22,7 @@ AM_CPPFLAGS += "-DGDK_WIN32_ENABLE_EGL=1" + endif #WIN32_GLES + + libgdk_win32_DEP_LIBS = \ +- hid.lib ++ -lhid + + LDADDS = $(libgdk_win32_DEP_LIBS) $(GDK_DEP_LIBS) + +@@ -87,6 +87,10 @@ libgdk_win32_la_SOURCES = \ + wintab.h \ + xcursors.h + ++libgdk_win32_la_LIBADD = \ ++ $(LDADDS) \ ++ $(NULL) ++ + libgdkinclude_HEADERS = \ + gdkwin32.h + +-- +GitLab + |