Skip to content

Commit 1ccec96

Browse files
Blackhexgithub-actions
authored andcommitted
0008-Cygwin-libgomp-soname.patch
1 parent ab7befd commit 1ccec96

File tree

6 files changed

+10
-1
lines changed

6 files changed

+10
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#define SONAME_PREFIX "cyg"
2+
#define SONAME_SUFFIX(n) ("-" #n ".dll")

libgomp/config/darwin/plugin-suffix.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@
2323
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
2424
<http://www.gnu.org/licenses/>. */
2525

26+
#define SONAME_PREFIX "lib"
2627
#define SONAME_SUFFIX(n) ("." #n ".dylib")

libgomp/config/hpux/plugin-suffix.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@
2323
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
2424
<http://www.gnu.org/licenses/>. */
2525

26+
#define SONAME_PREFIX "lib"
2627
#define SONAME_SUFFIX(n) (".sl." #n)

libgomp/config/posix/plugin-suffix.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@
2323
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
2424
<http://www.gnu.org/licenses/>. */
2525

26+
#define SONAME_PREFIX "lib"
2627
#define SONAME_SUFFIX(n) (".so." #n)

libgomp/configure.tgt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ case "${target}" in
145145
esac
146146
;;
147147

148+
*-*-cygwin*)
149+
config_path="cygwin posix"
150+
;;
151+
148152
*-*-mingw32*)
149153
config_path="mingw32 posix"
150154
;;

libgomp/target.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5436,7 +5436,7 @@ gomp_target_fini (void)
54365436
static void
54375437
gomp_target_init (void)
54385438
{
5439-
const char *prefix ="libgomp-plugin-";
5439+
const char *prefix = SONAME_PREFIX "gomp-plugin-";
54405440
const char *suffix = SONAME_SUFFIX (1);
54415441
const char *cur, *next;
54425442
char *plugin_name;

0 commit comments

Comments
 (0)