Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2009-06-13 02:33:02 +0400
committerMiguel de Icaza <miguel@gnome.org>2009-06-13 02:33:02 +0400
commitdc8d25b2547faf197ca174acd87a0a24434bec78 (patch)
tree2b76fe7db7c3531c894690c5c49e49e97496bbe7
parent27bf322446720506ddeb77cd2b62c66bc4c9bb13 (diff)
Backportificate
svn path=/branches/mono-2-4/mono-tools/; revision=136053
-rw-r--r--ChangeLog5
-rw-r--r--configure.in11
-rw-r--r--gsharp/Makefile.am4
-rw-r--r--gsharp/SysDrawing.cs4
4 files changed, 20 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index b8d657f6..a2c98700 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,11 @@
* Makefile.am: Add webdoc to the build.
+2008-12-15 Miguel de Icaza <miguel@novell.com>
+
+ * configure.in: Detect the proper LIB_PREFIX and LIB_SUFIX to fix
+ the crasher for gsharp when trying to Plot on other systems.
+
2008-12-02 Sebastien Pouliot <sebastien@ximian.com>
* configure.in: Remove AC_OUTPUT on gnunit files since they break
diff --git a/configure.in b/configure.in
index e5904a1d..a97752af 100644
--- a/configure.in
+++ b/configure.in
@@ -116,6 +116,16 @@ if test -z "$CONFIG_REQUESTED" ; then
enable_debug=yes
fi
+if test `uname -s` = "Darwin"; then
+ LIB_PREFIX=
+ LIB_SUFFIX=.dylib
+else
+ LIB_PREFIX=.so
+ LIB_SUFFIX=
+fi
+AC_SUBST(LIB_PREFIX)
+AC_SUBST(LIB_SUFFIX)
+
dnl
dnl I hate PKG_CONFIG_MODULES, that is for the weak
dnl
@@ -157,6 +167,7 @@ AC_OUTPUT([
Makefile
gsharp/Makefile
gsharp/gsharp
+gsharp/gsharp.exe.config
gui-compare/Makefile
gui-compare/gui-compare
mperfmon/Makefile
diff --git a/gsharp/Makefile.am b/gsharp/Makefile.am
index 45f5fc28..c6fd643f 100644
--- a/gsharp/Makefile.am
+++ b/gsharp/Makefile.am
@@ -1,7 +1,7 @@
gsharpdir = $(prefix)/lib/gsharp
bin_SCRIPTS = gsharp
-gsharp_DATA = gsharp.exe
+gsharp_DATA = gsharp.exe gsharp.exe.config
desktopdir = $(datadir)/applications
desktop_DATA = gsharp.desktop
@@ -26,7 +26,7 @@ gsharp_sources = \
$(srcdir)/gtk-gui/Mono.CSharp.Gui.DescribeType.cs \
$(srcdir)/outline.cs
-EXTRA_DIST = $(gsharp_sources) gsharp.in $(desktop_DATA).in close.png
+EXTRA_DIST = $(gsharp_sources) gsharp.in $(desktop_DATA).in close.png gsharp.exe.config.in
CLEANFILES = $(gsharp_DATA) $(gsharp_DATA).mdb $(desktop_DATA)
gsharp.exe: $(gsharp_sources)
diff --git a/gsharp/SysDrawing.cs b/gsharp/SysDrawing.cs
index 1b3919dc..15a95749 100644
--- a/gsharp/SysDrawing.cs
+++ b/gsharp/SysDrawing.cs
@@ -65,10 +65,10 @@ namespace Mono.CSharp.Gui
public class GraphicsHelper {
- [DllImport("libgdk-x11-2.0")]
+ [DllImport("libgdk-win32-2.0-0.dll")]
internal static extern IntPtr gdk_x11_drawable_get_xdisplay (IntPtr raw);
- [DllImport("libgdk-x11-2.0")]
+ [DllImport("libgdk-win32-2.0-0.dll")]
internal static extern IntPtr gdk_x11_drawable_get_xid (IntPtr raw);
public static System.Drawing.Graphics FromDrawable (Gdk.Drawable drawable)