]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Restrict use of -Wa,--compress-debug-sections to non-cygwin systems.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 11 Mar 2012 16:52:46 +0000 (16:52 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 11 Mar 2012 16:52:46 +0000 (16:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@25257 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4
deal.II/configure

index 15e0c136cf91021a3fefbed2665c50cd1c20cf5c..f2d53e01bafab96c90500347e8d17791803e2744 100644 (file)
@@ -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
index 98e7082919a71aa38266d9ba27152e30ae5afff0..f3fc3df2b26a566d4524df1b1768eb565ce0993e 100755 (executable)
@@ -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* )

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.