dnl of object files). Unfortunately, the sections have to be
dnl unpacked again when they are put into the shared libs, so
dnl no savings there.
- CXXFLAGS="-Wa,--compress-debug-sections"
- AC_MSG_CHECKING([whether the assembler understands -Wa,--compress-debug-sections])
- AC_TRY_LINK(
+ dnl
+ dnl The flag also doesn't appear to be working on Cygwin, as
+ dnl per email by John Fowkes on the mailing list in Feb 2012,
+ dnl so don't run the test on cygwin.
+ case "$target" in
+ *cygwin* )
+ ;;
+
+ * )
+ CXXFLAGS="-Wa,--compress-debug-sections"
+ AC_MSG_CHECKING([whether the assembler understands -Wa,--compress-debug-sections])
+ AC_TRY_LINK(
[
],
[;],
[
AC_MSG_RESULT(no)
])
-
+ ;;
+ esac
dnl Set PIC flags. On some systems, -fpic/PIC is implied, so don't set
dnl anything to avoid a warning. on AIX make sure we always pass -lpthread
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- CXXFLAGS="-Wa,--compress-debug-sections"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the assembler understands -Wa,--compress-debug-sections" >&5
+ case "$target" in
+ *cygwin* )
+ ;;
+
+ * )
+ CXXFLAGS="-Wa,--compress-debug-sections"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the assembler understands -Wa,--compress-debug-sections" >&5
$as_echo_n "checking whether the assembler understands -Wa,--compress-debug-sections... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
-
+ ;;
+ esac
case "$target" in
*aix* )