From: Nobuyoshi Nakada Date: 2007-05-02T16:36:30+09:00 Subject: Re: Ruby load problem on AIX Hi, At Fri, 6 Apr 2007 17:43:13 +0900, Yutaka Kanemoto wrote in [ruby-talk:246920]: > Attached patch is to change dln.c behavior not to use load() but dlopen() > for AIX. This seemed to work in my environment. I eventually found this thread. > - DLDFLAGS='-Wl,-G -eInit_$(TARGET)' > - LDFLAGS='-Wl,-brtl -Wl,-bE:ruby.imp' > + DLDFLAGS="${DLDFLAGS} -Wl,-G -Wl,-bnoentry -Wl,-bexpall" > + LDFLAGS="${LDFLAGS} -Wl,-brtl -Wl,-bE:ruby.imp" I don't know about -bnoentry and -bexpall options, are they preferable? > -#if defined(_AIX) && ! defined(_IA64) > -static void > -aix_loaderror(const char *pathname) Do all AIX versions support dlopen()? If not, these probably should not be removed but be changed the condition. -- Nobu Nakada