This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/64635] darwin produces libgomp-plugin-host_nonshm.1.dylib but tries to load libgomp-plugin-host_nonshm.so.1
- From: "howarth at bromo dot med.uc.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 17 Jan 2015 01:37:27 +0000
- Subject: [Bug libgomp/64635] darwin produces libgomp-plugin-host_nonshm.1.dylib but tries to load libgomp-plugin-host_nonshm.so.1
- Auto-submitted: auto-generated
- References: <bug-64635-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64635
--- Comment #1 from howarth at bromo dot med.uc.edu ---
The problem code is...
static void
gomp_target_init (void)
{
const char *prefix ="libgomp-plugin-";
const char *suffix = ".so.1";
in libgomp/target.c which will need to be enhanced use ".1.dylib" on darwin.
While there isn't a firm convention for the suffix of shared modules on darwin,
the libgomp_plugin_host_nonshm.1.dylib file is a normal shared library...
file libgomp-plugin-host_nonshm.1.dylib
libgomp-plugin-host_nonshm.1.dylib: Mach-O 64-bit dynamically linked shared
library x86_64
and should retain the dylib suffix.