diff mbox

[Ping] Port of VTV for Cygwin and MinGW

Message ID 87iofbmfke.fsf@kepler.schwinge.homeip.net
State New
Headers show

Commit Message

Thomas Schwinge Feb. 9, 2015, 12:31 p.m. UTC
Hi!

On Wed, 28 Jan 2015 14:58:04 -0800, Caroline Tice <cmtice@google.com> wrote:
> Since all the pieces of this patch have been approved, I will commit
> it later today (since Patrick does not have commit privileges).

(This happened in r220232 and r220254.)

I'm seeing:

    [...]
    checking dynamic linker characteristics... (cached) GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    /scratch/tschwing/nvidiak20-2/gcc/trunk-big/source-gcc/libvtv/configure: line 15491: ACX_LT_HOST_FLAGS: command not found
    configure: updating cache ./config.cache
    configure: creating ./config.status
    [...]

As obvious, I committed the following in r220535:

commit a9983ab2160733f677d3d0e78b60d1a1659addd0
Author: tschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Mon Feb 9 11:41:22 2015 +0000

    libvtv: autoreconf.
    
    	libvtv/
    	* Makefile.in: Regenerate.
    	* aclocal.m4: Likewise.
    	* configure: Likewise.
    	* testsuite/Makefile.in: Likewise.
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220535 138bc75d-0d04-0410-961f-82ee72b054a4
---
 libvtv/ChangeLog             |    7 +++++++
 libvtv/Makefile.in           |    2 ++
 libvtv/aclocal.m4            |    1 +
 libvtv/configure             |   28 +++++++++++++++++++++++++---
 libvtv/testsuite/Makefile.in |    2 ++
 5 files changed, 37 insertions(+), 3 deletions(-)



Grüße,
 Thomas
diff mbox

Patch

diff --git libvtv/ChangeLog libvtv/ChangeLog
index 7dd9f09..dd8d2a4 100644
--- libvtv/ChangeLog
+++ libvtv/ChangeLog
@@ -1,3 +1,10 @@ 
+2015-02-09  Thomas Schwinge  <thomas@codesourcery.com>
+
+	* Makefile.in: Regenerate.
+	* aclocal.m4: Likewise.
+	* configure: Likewise.
+	* testsuite/Makefile.in: Likewise.
+
 2015-01-29  Caroline Tice  <cmtice@google.com>
 
 	Committing VTV Cywin/Ming patch for Patrick Wollgast
diff --git libvtv/Makefile.in libvtv/Makefile.in
index 098ee88..bc472fd 100644
--- libvtv/Makefile.in
+++ libvtv/Makefile.in
@@ -46,6 +46,7 @@  am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \
 	$(top_srcdir)/../config/depstand.m4 \
 	$(top_srcdir)/../config/lead-dot.m4 \
 	$(top_srcdir)/../config/libstdc++-raw-cxx.m4 \
+	$(top_srcdir)/../config/lthostflags.m4 \
 	$(top_srcdir)/../config/multi.m4 \
 	$(top_srcdir)/../config/override.m4 \
 	$(top_srcdir)/../ltoptions.m4 $(top_srcdir)/../ltsugar.m4 \
@@ -257,6 +258,7 @@  libvtv_builddir = @libvtv_builddir@
 libvtv_srcdir = @libvtv_srcdir@
 localedir = @localedir@
 localstatedir = @localstatedir@
+lt_host_flags = @lt_host_flags@
 mandir = @mandir@
 mkdir_p = @mkdir_p@
 multi_basedir = @multi_basedir@
diff --git libvtv/aclocal.m4 libvtv/aclocal.m4
index 5478f2b..cb5eb67 100644
--- libvtv/aclocal.m4
+++ libvtv/aclocal.m4
@@ -1007,6 +1007,7 @@  m4_include([../config/acx.m4])
 m4_include([../config/depstand.m4])
 m4_include([../config/lead-dot.m4])
 m4_include([../config/libstdc++-raw-cxx.m4])
+m4_include([../config/lthostflags.m4])
 m4_include([../config/multi.m4])
 m4_include([../config/override.m4])
 m4_include([../ltoptions.m4])
diff --git libvtv/configure libvtv/configure
index 64b6f75..a7211b8 100755
--- libvtv/configure
+++ libvtv/configure
@@ -608,6 +608,7 @@  XCFLAGS
 libtool_VERSION
 enable_static
 enable_shared
+lt_host_flags
 CXXCPP
 OTOOL64
 OTOOL
@@ -12129,7 +12130,7 @@  else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12132 "configure"
+#line 12133 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -12235,7 +12236,7 @@  else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12238 "configure"
+#line 12239 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -15488,7 +15489,28 @@  ac_compiler_gnu=$ac_cv_c_compiler_gnu
 # Only expand once:
 
 
-ACX_LT_HOST_FLAGS
+
+
+
+case $host in
+  *-cygwin* | *-mingw*)
+    # 'host' will be top-level target in the case of a target lib,
+    # we must compare to with_cross_host to decide if this is a native
+    # or cross-compiler and select where to install dlls appropriately.
+    if test -n "$with_cross_host" &&
+	test x"$with_cross_host" != x"no"; then
+      lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
+    else
+      lt_host_flags='-no-undefined -bindir "$(bindir)"';
+    fi
+    ;;
+  *)
+    lt_host_flags=
+    ;;
+esac
+
+
+
 
 
 
diff --git libvtv/testsuite/Makefile.in libvtv/testsuite/Makefile.in
index ba28e74..c8fd48c 100644
--- libvtv/testsuite/Makefile.in
+++ libvtv/testsuite/Makefile.in
@@ -41,6 +41,7 @@  am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \
 	$(top_srcdir)/../config/depstand.m4 \
 	$(top_srcdir)/../config/lead-dot.m4 \
 	$(top_srcdir)/../config/libstdc++-raw-cxx.m4 \
+	$(top_srcdir)/../config/lthostflags.m4 \
 	$(top_srcdir)/../config/multi.m4 \
 	$(top_srcdir)/../config/override.m4 \
 	$(top_srcdir)/../ltoptions.m4 $(top_srcdir)/../ltsugar.m4 \
@@ -167,6 +168,7 @@  libvtv_builddir = @libvtv_builddir@
 libvtv_srcdir = @libvtv_srcdir@
 localedir = @localedir@
 localstatedir = @localstatedir@
+lt_host_flags = @lt_host_flags@
 mandir = @mandir@
 mkdir_p = @mkdir_p@
 multi_basedir = @multi_basedir@