From 260400b3f81d536910460b3e4f7d96bbe23c6040 Mon Sep 17 00:00:00 2001 From: Jonathan Yong <10walls@gmail.com> Date: Sat, 28 Jun 2014 09:35:02 +0800 Subject: [PATCH 13/24] Do not version lto plugin on cygwin/mingw --- 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 bea17bc..a85d8b2 100644 --- a/gcc/config.host +++ b/gcc/config.host @@ -219,14 +219,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 @@ -234,7 +234,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 e3391bc..2c5c738 100644 --- a/lto-plugin/Makefile.am +++ b/lto-plugin/Makefile.am @@ -24,7 +24,7 @@ liblto_plugin_la_LIBADD = \ $(if $(wildcard ../libiberty/pic/libiberty.a),$(Wc)../libiberty/pic/libiberty.a,) # 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) \ $(if $(wildcard ../libiberty/pic/libiberty.a),,-Wc,../libiberty/libiberty.a) liblto_plugin_la_DEPENDENCIES = $(if $(wildcard \ ../libiberty/pic/libiberty.a),../libiberty/pic/libiberty.a,) diff --git a/lto-plugin/Makefile.in b/lto-plugin/Makefile.in index a70de62..a571877 100644 --- a/lto-plugin/Makefile.in +++ b/lto-plugin/Makefile.in @@ -245,7 +245,7 @@ liblto_plugin_la_LIBADD = \ # 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) \ $(if $(wildcard ../libiberty/pic/libiberty.a),,-Wc,../libiberty/libiberty.a) liblto_plugin_la_DEPENDENCIES = $(if $(wildcard \ -- 2.1.1