summaryrefslogtreecommitdiffstats
path: root/0010-Do-not-version-lto-plugin-on-cygwin-mingw.patch
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2016-02-21 18:56:00 -0600
committerYaakov Selkowitz <yselkowi@redhat.com>2016-02-21 18:56:00 -0600
commit2426323bbdcaf8d5904f1f243bb2a5066dd21c8a (patch)
tree21ab325f116ab50e84ac20a77bbaf569eb56a469 /0010-Do-not-version-lto-plugin-on-cygwin-mingw.patch
parentd9caede9a622bfa41c984c4685a7b185421c96d7 (diff)
downloadcygwin-gcc-2426323bbdcaf8d5904f1f243bb2a5066dd21c8a.tar.gz
cygwin-gcc-2426323bbdcaf8d5904f1f243bb2a5066dd21c8a.tar.xz
cygwin-gcc-2426323bbdcaf8d5904f1f243bb2a5066dd21c8a.zip
cygwin-gcc 5.3.0
Diffstat (limited to '0010-Do-not-version-lto-plugin-on-cygwin-mingw.patch')
-rw-r--r--0010-Do-not-version-lto-plugin-on-cygwin-mingw.patch73
1 files changed, 73 insertions, 0 deletions
diff --git a/0010-Do-not-version-lto-plugin-on-cygwin-mingw.patch b/0010-Do-not-version-lto-plugin-on-cygwin-mingw.patch
new file mode 100644
index 0000000..dac123c
--- /dev/null
+++ b/0010-Do-not-version-lto-plugin-on-cygwin-mingw.patch
@@ -0,0 +1,73 @@
+From 0817191f16ba1318a84ea184887c1119f298bc45 Mon Sep 17 00:00:00 2001
+From: Jonathan Yong <10walls@gmail.com>
+Date: Sat, 28 Jun 2014 09:35:02 +0800
+Subject: [PATCH 10/21] Do not version lto plugin on cygwin/mingw
+
+Conflicts:
+ lto-plugin/Makefile.am
+ lto-plugin/Makefile.in
+---
+ gcc/config.host | 6 +++---
+ lto-plugin/Makefile.am | 2 +-
+ lto-plugin/Makefile.in | 2 +-
+ 3 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/gcc/config.host b/gcc/config.host
+index 8b7e16d..361de8e 100644
+--- a/gcc/config.host
++++ b/gcc/config.host
+@@ -232,14 +232,14 @@ case ${host} in
+ out_host_hook_obj=host-cygwin.o
+ host_xmake_file="${host_xmake_file} i386/x-cygwin"
+ host_exeext=.exe
+- host_lto_plugin_soname=cyglto_plugin-0.dll
++ host_lto_plugin_soname=cyglto_plugin.dll
+ ;;
+ i[34567]86-*-mingw32*)
+ host_xm_file=i386/xm-mingw32.h
+ host_xmake_file="${host_xmake_file} i386/x-mingw32"
+ host_exeext=.exe
+ out_host_hook_obj=host-mingw32.o
+- host_lto_plugin_soname=liblto_plugin-0.dll
++ host_lto_plugin_soname=liblto_plugin.dll
+ ;;
+ x86_64-*-mingw*)
+ use_long_long_for_widest_fast_int=yes
+@@ -247,7 +247,7 @@ case ${host} in
+ host_xmake_file="${host_xmake_file} i386/x-mingw32"
+ host_exeext=.exe
+ out_host_hook_obj=host-mingw32.o
+- host_lto_plugin_soname=liblto_plugin-0.dll
++ host_lto_plugin_soname=liblto_plugin.dll
+ ;;
+ i[34567]86-*-uwin*)
+ echo "*** UWIN may not be used as a host platform because"
+diff --git a/lto-plugin/Makefile.am b/lto-plugin/Makefile.am
+index a90a5da..1ebf155 100644
+--- a/lto-plugin/Makefile.am
++++ b/lto-plugin/Makefile.am
+@@ -21,7 +21,7 @@ in_gcc_libs = $(foreach lib, $(libexecsub_LTLIBRARIES), $(gcc_build_dir)/$(lib))
+ liblto_plugin_la_SOURCES = lto-plugin.c
+ # Note that we intentionally override the bindir supplied by ACX_LT_HOST_FLAGS.
+ liblto_plugin_la_LDFLAGS = $(AM_LDFLAGS) \
+- $(lt_host_flags) -module -bindir $(libexecsubdir)
++ $(lt_host_flags) -module -avoid-version -bindir $(libexecsubdir)
+ # Can be simplified when libiberty becomes a normal convenience library.
+ libiberty = $(with_libiberty)/libiberty.a
+ libiberty_noasan = $(with_libiberty)/noasan/libiberty.a
+diff --git a/lto-plugin/Makefile.in b/lto-plugin/Makefile.in
+index 06ef5f3..ec5b3e6 100644
+--- a/lto-plugin/Makefile.in
++++ b/lto-plugin/Makefile.in
+@@ -264,7 +264,7 @@ libexecsub_LTLIBRARIES = liblto_plugin.la
+ in_gcc_libs = $(foreach lib, $(libexecsub_LTLIBRARIES), $(gcc_build_dir)/$(lib))
+ liblto_plugin_la_SOURCES = lto-plugin.c
+ # Note that we intentionally override the bindir supplied by ACX_LT_HOST_FLAGS.
+-liblto_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(lt_host_flags) -module \
++liblto_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(lt_host_flags) -module -avoid-version \
+ -bindir $(libexecsubdir) $(if $(wildcard \
+ $(libiberty_noasan)),, $(if $(wildcard \
+ $(libiberty_pic)),,-Wc,$(libiberty)))
+--
+2.4.5
+