From: bangerth Date: Sun, 11 Mar 2012 16:52:46 +0000 (+0000) Subject: Restrict use of -Wa,--compress-debug-sections to non-cygwin systems. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4beab1eae0124349fc0b110f969fc94f65c46e63;p=dealii-svn.git Restrict use of -Wa,--compress-debug-sections to non-cygwin systems. git-svn-id: https://svn.dealii.org/trunk@25257 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index 15e0c136cf..f2d53e01ba 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -454,9 +454,18 @@ AC_DEFUN(DEAL_II_SET_CXX_FLAGS, dnl 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( [ ], [;], @@ -467,7 +476,8 @@ AC_DEFUN(DEAL_II_SET_CXX_FLAGS, dnl [ 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 diff --git a/deal.II/configure b/deal.II/configure index 98e7082919..f3fc3df2b2 100755 --- a/deal.II/configure +++ b/deal.II/configure @@ -4511,10 +4511,15 @@ $as_echo "yes" >&6; } 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. */ @@ -4540,7 +4545,8 @@ $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext - + ;; + esac case "$target" in *aix* )