Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/configure.in')
-rw-r--r--newlib/libc/sys/configure.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/newlib/libc/sys/configure.in b/newlib/libc/sys/configure.in
index ea6749041..4a53612e0 100644
--- a/newlib/libc/sys/configure.in
+++ b/newlib/libc/sys/configure.in
@@ -9,6 +9,14 @@ AC_CONFIG_AUX_DIR(../../..)
NEWLIB_CONFIGURE(../..)
+dnl We have to enable libtool after NEWLIB_CONFIGURE because if we try and
+dnl add it into NEWLIB_CONFIGURE, executable tests are made before the first
+dnl line of the macro which fail because appropriate LDFLAGS are not set.
+if test "${use_libtool}" = "yes"; then
+AC_LIBTOOL_WIN32_DLL
+AM_PROG_LIBTOOL
+fi
+
if test -n "${sys_dir}"; then
AC_CONFIG_SUBDIRS(${sys_dir})
fi