summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMohamed Akram <mohd.akram@outlook.com>2024-05-23 00:34:07 +0400
committerMohamed Akram <mohd.akram@outlook.com>2024-05-23 00:34:07 +0400
commitcbbe13a9e0fd5908288e617b56f41ca1a66d9a0e (patch)
tree7ce661cf402a75a03bfb5e152e4f8865da27fbd7 /src
parenta938ec5ca1923759327b7b80861d8382b3686a1b (diff)
Improve linking with widget libraries on macOSHEADmaster
This allows getting rid of the vendor shell hack in libXaw and libXaw3d by using a coalesced weak reference.
Diffstat (limited to 'src')
-rw-r--r--src/Vendor.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Vendor.c b/src/Vendor.c
index 5c977de..41248f5 100644
--- a/src/Vendor.c
+++ b/src/Vendor.c
@@ -82,6 +82,9 @@ DllMain(unsigned long mod_handle, unsigned long flag, void *routine)
#endif
/* *INDENT-OFF* */
+#if defined(__APPLE__)
+__attribute__((weak))
+#endif
externaldef(vendorshellclassrec)
VendorShellClassRec vendorShellClassRec = {
{
@@ -137,5 +140,8 @@ VendorShellClassRec vendorShellClassRec = {
};
/* *INDENT-ON* */
+#if defined(__APPLE__)
+__attribute__((weak))
+#endif
externaldef(vendorshellwidgetclass)
WidgetClass vendorShellWidgetClass = (WidgetClass) (&vendorShellClassRec);