diff options
author | Jack Howarth <howarth.at.gcc@gmail.com> | 2015-01-28 21:23:14 +0000 |
---|---|---|
committer | Mike Stump <mrs@gcc.gnu.org> | 2015-01-28 21:23:14 +0000 |
commit | b5f7a6ca5c5bdebdea7c3e38aca2c15108e8a3cb (patch) | |
tree | 184f01104b6f7c1b0e1f0834f1f1caba8376a5e5 /libgomp/target.c | |
parent | c761dca15efdd733a1488be40dfccc5a55811c04 (diff) | |
download | gcc-b5f7a6ca5c5bdebdea7c3e38aca2c15108e8a3cb.zip gcc-b5f7a6ca5c5bdebdea7c3e38aca2c15108e8a3cb.tar.gz gcc-b5f7a6ca5c5bdebdea7c3e38aca2c15108e8a3cb.tar.bz2 |
re PR libgomp/64635 (darwin produces libgomp-plugin-host_nonshm.1.dylib but tries to load libgomp-plugin-host_nonshm.so.1)
2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
PR libgomp/64635
* configure.tgt (*-*-aix*): Use config_path "aix posix".
(*-*-darwin*): Use config_path "bsd darwin posix".
(*-*-hpux*): Use config_path "hpux posix".
* target.c: Add include of plugin-suffix.h and use
SONAME_SUFFIX macro.
* config/aix/plugin-suffix.h: New file.
* config/darwin/plugin-suffix.h: New file.
* config/hpux/plugin-suffix.h: New file.
* config/posix/plugin-suffix.h: New file.
From-SVN: r220218
Diffstat (limited to 'libgomp/target.c')
-rw-r--r-- | libgomp/target.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libgomp/target.c b/libgomp/target.c index ebff55e..73e757a 100644 --- a/libgomp/target.c +++ b/libgomp/target.c @@ -38,6 +38,7 @@ #ifdef PLUGIN_SUPPORT #include <dlfcn.h> +#include "plugin-suffix.h" #endif static void gomp_target_init (void); @@ -1054,7 +1055,7 @@ static void gomp_target_init (void) { const char *prefix ="libgomp-plugin-"; - const char *suffix = ".so.1"; + const char *suffix = SONAME_SUFFIX (1); const char *cur, *next; char *plugin_name; int i, new_num_devices; |