Fix for missing X11 libraries when linking wxGTK2 statically (PR #22813)

28 views
Skip to first unread message

VZ

unread,
Sep 20, 2022, 6:31:25 PM9/20/22
to wx-...@googlegroups.com, Subscribed

We must always use them with wxGTK2, so don't check wxHAVE_GDK_X11 for
it, otherwise we're never going to include X11 libraries when using it,
but they are always required.


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/22813

Commit Summary

  • 6f877e5 Fix for missing X11 libraries when linking wxGTK2 statically

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/22813@github.com>

VZ

unread,
Sep 20, 2022, 6:32:41 PM9/20/22
to wx-...@googlegroups.com, Subscribed

@MaartenBent I'm reasonable sure that this is the right thing to do, but I'd still appreciate your confirmation, of course.

FWIW I also thought of always setting wxHAVE_GDK_X11 for GTK2, but this didn't seem right to me, and it's only used here, so I preferred to make this fix instead.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/22813/c1252983999@github.com>

Maarten

unread,
Sep 22, 2022, 5:13:19 AM9/22/22
to wx-...@googlegroups.com, Subscribed

Looks fine to me. Maybe it can even be simplified to (WXX11 OR WXMOTIF OR WXGTK2 OR wxHAVE_GDK_X11).


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/22813/c1254748745@github.com>

VZ

unread,
Sep 22, 2022, 10:28:39 AM9/22/22
to wx-...@googlegroups.com, Subscribed

Thanks, but I think I prefer to keep WXGTK check as the condition reads more clearly with it, even if it's equivalent. I'll merge this soon.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/22813/c1255109405@github.com>

VZ

unread,
Sep 25, 2022, 3:06:56 PM9/25/22
to wx-...@googlegroups.com, Subscribed

Closed #22813.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/22813/issue_event/7453892384@github.com>

Reply all
Reply to author
Forward
0 new messages