Enable libitm DLL build on Cygwin/Mingw

Submitted by JonY on Aug. 9, 2017, 1:02 p.m.

Details

Message ID ad85cfaa-145f-b998-8ebb-8692b346cdb4@gmail.com
State New
Headers show

Commit Message

JonY Aug. 9, 2017, 1:02 p.m.
Fixes libtool calls in libitm. Patch OK for trunk?

2017-08-09  Jonathan Yong  <10walls@gmail.com>

	* configure.ac: Check libtool flags.
	* Makefile.am: Use lt_host_flags.
	* configure: Regenerated.
	* Makefile.in: Regenerated.
	* testsuite/Makefile.in: Regenerated.

Patch hide | download patch | download mbox

Index: configure.ac
===================================================================
--- configure.ac	(revision 250986)
+++ configure.ac	(working copy)
@@ -147,6 +147,7 @@ 
 
 # Configure libtool
 AM_PROG_LIBTOOL
+ACX_LT_HOST_FLAGS
 AC_SUBST(enable_shared)
 AC_SUBST(enable_static)
 
Index: Makefile.am
===================================================================
--- Makefile.am	(revision 250986)
+++ Makefile.am	(working copy)
@@ -54,7 +54,7 @@ 
 # want or need libstdc++.
 libitm_la_DEPENDENCIES = $(libitm_version_dep)
 libitm_la_LINK = $(LINK) $(libitm_la_LDFLAGS)
-libitm_la_LDFLAGS = $(libitm_version_info) $(libitm_version_script)
+libitm_la_LDFLAGS = $(libitm_version_info) $(libitm_version_script) $(lt_host_flags)
 
 libitm_la_SOURCES = \
 	aatree.cc alloc.cc alloc_c.cc alloc_cpp.cc barrier.cc beginend.cc \