From d6c6acd6409c87b69e7aa872eb3e9d57d66aaa1a Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Wed, 1 Dec 2004 21:35:26 +0000 Subject: [PATCH] Added support for GNOME print in static builds also by adding the FORCE_LINK() statements. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/app.cpp | 6 ++++++ src/gtk/gnome/gprint.cpp | 4 ++++ src/gtk1/app.cpp | 6 ++++++ src/gtk1/gnome/gprint.cpp | 4 ++++ 4 files changed, 20 insertions(+) diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index e722bcace7..e370b54665 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -80,6 +80,12 @@ #include +#if wxUSE_LIBGNOMEPRINT + +#include "wx/html/forcelnk.h" +FORCE_LINK(gnome_print) + +#endif //----------------------------------------------------------------------------- // global data diff --git a/src/gtk/gnome/gprint.cpp b/src/gtk/gnome/gprint.cpp index d776d44acd..c761a15e96 100644 --- a/src/gtk/gnome/gprint.cpp +++ b/src/gtk/gnome/gprint.cpp @@ -38,6 +38,10 @@ #include #include + +#include "wx/html/forcelnk.h" +FORCE_LINK_ME(gnome_print) + //---------------------------------------------------------------------------- // wxGnomePrintLibrary //---------------------------------------------------------------------------- diff --git a/src/gtk1/app.cpp b/src/gtk1/app.cpp index e722bcace7..e370b54665 100644 --- a/src/gtk1/app.cpp +++ b/src/gtk1/app.cpp @@ -80,6 +80,12 @@ #include +#if wxUSE_LIBGNOMEPRINT + +#include "wx/html/forcelnk.h" +FORCE_LINK(gnome_print) + +#endif //----------------------------------------------------------------------------- // global data diff --git a/src/gtk1/gnome/gprint.cpp b/src/gtk1/gnome/gprint.cpp index d776d44acd..c761a15e96 100644 --- a/src/gtk1/gnome/gprint.cpp +++ b/src/gtk1/gnome/gprint.cpp @@ -38,6 +38,10 @@ #include #include + +#include "wx/html/forcelnk.h" +FORCE_LINK_ME(gnome_print) + //---------------------------------------------------------------------------- // wxGnomePrintLibrary //---------------------------------------------------------------------------- -- 2.45.2