From: dons Date: Sun, 2 Nov 2003 06:55:24 +0000 (+0000) Subject: [project @ 2003-11-02 06:55:24 by dons] X-Git-Tag: Approx_11550_changesets_converted~290 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=04e741db0c35f396b59d6da83aafce06b4ca76b1;p=ghc-hetmet.git [project @ 2003-11-02 06:55:24 by dons] More RTLD_* symbols are now available on OpenBSD. This does not mean that ghci works yet, though. --- diff --git a/ghc/rts/Linker.c b/ghc/rts/Linker.c index 73f69e2..6fe9310 100644 --- a/ghc/rts/Linker.c +++ b/ghc/rts/Linker.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Linker.c,v 1.138 2003/10/29 16:12:00 wolfgang Exp $ + * $Id: Linker.c,v 1.139 2003/11/02 06:55:24 dons Exp $ * * (c) The GHC Team, 2000-2003 * @@ -744,11 +744,8 @@ addDLL( char *dll_name ) initLinker(); -#if !defined(openbsd_TARGET_OS) hdl= dlopen(dll_name, RTLD_NOW | RTLD_GLOBAL); -#else - hdl= dlopen(dll_name, RTLD_LAZY); -#endif + if (hdl == NULL) { /* dlopen failed; return a ptr to the error msg. */ errmsg = dlerror();