Author: wade
Date: 2005-07-05 12:20:41 -0400 (Tue, 05 Jul 2005)
New Revision: 46954

Modified:
   tags/debugger-0-10/ChangeLog
   tags/debugger-0-10/arch/Bfd.cs
   tags/debugger-0-10/backends/Inferior.cs
   tags/debugger-0-10/backends/classes/Utils.cs
   tags/debugger-0-10/configure.in
   tags/debugger-0-10/wrapper/Makefile.am
   tags/debugger-0-10/wrapper/Mono.Debugger.dll.config.in
Log:
* DllImport:
  Copy what gtk-sharp does for importing glib-2.0:
  - add dllmap to Mono.Debugger.dll.config
  Remove dllmap for monodebuggerderver since it
  will be located by
  ldconfig's cache or LD_LIBRARY_PATH



Modified: tags/debugger-0-10/ChangeLog
===================================================================
--- tags/debugger-0-10/ChangeLog        2005-07-05 16:16:48 UTC (rev 46953)
+++ tags/debugger-0-10/ChangeLog        2005-07-05 16:20:41 UTC (rev 46954)
@@ -1,3 +1,11 @@
+2005-07-05  Wade Berrier <[EMAIL PROTECTED]>
+
+       * DllImport:
+       Copy what gtk-sharp does for importing glib-2.0:
+       - add dllmap to Mono.Debugger.dll.config
+       Remove dllmap for monodebuggerderver since it will be located by 
+       ldconfig's cache or LD_LIBRARY_PATH
+
 2005-06-11  Chris Toshok  <[EMAIL PROTECTED]>
 
        * backends/native/NativeFundamentalObject.cs:

Modified: tags/debugger-0-10/arch/Bfd.cs
===================================================================
--- tags/debugger-0-10/arch/Bfd.cs      2005-07-05 16:16:48 UTC (rev 46953)
+++ tags/debugger-0-10/arch/Bfd.cs      2005-07-05 16:20:41 UTC (rev 46954)
@@ -159,7 +159,7 @@
                [DllImport("monodebuggerserver")]
                extern static long bfd_glue_elfi386_locate_base (IntPtr bfd, 
IntPtr data, int size);
 
-               [DllImport("glib-2.0")]
+               [DllImport("libglib-2.0-0.dll")]
                extern static void g_free (IntPtr data);
 
                [DllImport("monodebuggerserver")]

Modified: tags/debugger-0-10/backends/Inferior.cs
===================================================================
--- tags/debugger-0-10/backends/Inferior.cs     2005-07-05 16:16:48 UTC (rev 
46953)
+++ tags/debugger-0-10/backends/Inferior.cs     2005-07-05 16:20:41 UTC (rev 
46954)
@@ -218,7 +218,7 @@
 
                public abstract Inferior CreateThread ();
 
-               [DllImport("glib-2.0")]
+               [DllImport("libglib-2.0-0.dll")]
                protected extern static void g_free (IntPtr data);
 
                protected void check_error (TargetError error)

Modified: tags/debugger-0-10/backends/classes/Utils.cs
===================================================================
--- tags/debugger-0-10/backends/classes/Utils.cs        2005-07-05 16:16:48 UTC 
(rev 46953)
+++ tags/debugger-0-10/backends/classes/Utils.cs        2005-07-05 16:20:41 UTC 
(rev 46954)
@@ -6,7 +6,7 @@
 {
        internal abstract class Utils
        {
-               [DllImport("glib-2.0")]
+               [DllImport("libglib-2.0-0.dll")]
                extern static bool g_file_get_contents (string filename, out 
IntPtr contents, out int length, out IntPtr error);
 
                public static string GetFileContents (string filename)

Modified: tags/debugger-0-10/configure.in
===================================================================
--- tags/debugger-0-10/configure.in     2005-07-05 16:16:48 UTC (rev 46953)
+++ tags/debugger-0-10/configure.in     2005-07-05 16:20:41 UTC (rev 46954)
@@ -196,6 +196,17 @@
 dnl BFD checks
 dnl
 
+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)
+
 AC_CHECK_HEADERS(stddef.h string.h strings.h stdlib.h time.h unistd.h)
 AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h)
 AC_HEADER_TIME
@@ -210,6 +221,7 @@
 classes/Makefile
 glue/Makefile
 wrapper/Makefile
+wrapper/Mono.Debugger.dll.config
 backends/Makefile
 backends/classes/Makefile
 backends/server/Makefile

Modified: tags/debugger-0-10/wrapper/Makefile.am
===================================================================
--- tags/debugger-0-10/wrapper/Makefile.am      2005-07-05 16:16:48 UTC (rev 
46953)
+++ tags/debugger-0-10/wrapper/Makefile.am      2005-07-05 16:20:41 UTC (rev 
46954)
@@ -79,12 +79,6 @@
 
 noinst_DATA = Mono.Debugger.dll.config
 
-Mono.Debugger.dll.config: Mono.Debugger.dll.config.in Makefile
-       sed -e '[EMAIL PROTECTED]@^$(libdir)^g' \
-               -e '[EMAIL PROTECTED]@^$(LT_VERSION_SUFFIX)^g' \
-               < $(srcdir)/Mono.Debugger.dll.config.in > config.tmp \
-       && mv config.tmp Mono.Debugger.dll.config
-
 ASSEMBLY_NAME = Mono.Debugger
 ASSEMBLY = $(ASSEMBLY_NAME).dll
 

Modified: tags/debugger-0-10/wrapper/Mono.Debugger.dll.config.in
===================================================================
--- tags/debugger-0-10/wrapper/Mono.Debugger.dll.config.in      2005-07-05 
16:16:48 UTC (rev 46953)
+++ tags/debugger-0-10/wrapper/Mono.Debugger.dll.config.in      2005-07-05 
16:20:41 UTC (rev 46954)
@@ -1,3 +1,3 @@
 <configuration>
-   <dllmap dll="monodebuggerserver" target="@libdir@/[EMAIL PROTECTED]@"/>
+   <dllmap dll="libglib-2.0-0.dll" target="[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@"/>
 </configuration>

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to