Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] [PATCH] fixed dlopen of libc for os x
@ 2008-04-27  6:48 William Morgan
  2008-04-27  8:45 ` Christopher Warrington
  0 siblings, 1 reply; 3+ messages in thread
From: William Morgan @ 2008-04-27  6:48 UTC (permalink / raw)


Reformatted excerpts from Grant Hollingworth's message of 2008-04-24:
> OS X likes to do its own thing.

Merged into next. Thanks!

-- 
William <wmorgan-sup at masanjin.net>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [sup-talk] [PATCH] fixed dlopen of libc for os x
  2008-04-27  6:48 [sup-talk] [PATCH] fixed dlopen of libc for os x William Morgan
@ 2008-04-27  8:45 ` Christopher Warrington
  0 siblings, 0 replies; 3+ messages in thread
From: Christopher Warrington @ 2008-04-27  8:45 UTC (permalink / raw)


Excerpts from William Morgan's message of Sun Apr 27 01:48:36 -0500 2008:
>> OS X likes to do its own thing. 
> Merged into next. Thanks!

Cygwin does too. You need to load "cygwin1.dll", not "libc.so.6". For
now, I've hacked this into my repository. However, we really should
come up with a cleaner way of handing these architecture-dependent
idiosyncrasies. (The Factory pattern from OO design comes to mind...)

-- 
christopher Warrington <chrisw at rice.edu>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [sup-talk] [PATCH] fixed dlopen of libc for os x
  2008-04-22 23:18 ` William Morgan
@ 2008-04-24 23:10   ` Grant Hollingworth
  0 siblings, 0 replies; 3+ messages in thread
From: Grant Hollingworth @ 2008-04-24 23:10 UTC (permalink / raw)


OS X likes to do its own thing.

---
 lib/sup.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/sup.rb b/lib/sup.rb
index c4d1dd5..afd030f 100644
--- a/lib/sup.rb
+++ b/lib/sup.rb
@@ -14,7 +14,7 @@ require 'curses'
 require 'dl/import'
 module LibC
   extend DL::Importable
-  dlload "libc.so.6"
+  dlload Config::CONFIG['arch'] =~ /darwin/ ? "libc.dylib" : "libc.so.6"
   extern "void setlocale(int, const char *)"
 end
 LibC.setlocale(6, "")  # LC_ALL == 6
-- 
1.5.4.4


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-04-27  8:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-27  6:48 [sup-talk] [PATCH] fixed dlopen of libc for os x William Morgan
2008-04-27  8:45 ` Christopher Warrington
  -- strict thread matches above, loose matches on Subject: below --
2008-04-21 20:37 [sup-talk] System encoding versus messages encoding Israel Herraiz
2008-04-22 23:18 ` William Morgan
2008-04-24 23:10   ` [sup-talk] [PATCH] fixed dlopen of libc for os x Grant Hollingworth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox