configure.ac: provide a --disable-dwarf2 configure option

Austin English austinenglish at gmail.com
Tue Aug 21 18:02:19 CDT 2012


This should address the concerns from
http://bugs.winehq.org/show_bug.cgi?id=31501

-- 
-Austin
-------------- next part --------------
diff --git a/configure.ac b/configure.ac
index 15ada86..0f3cb74 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,6 +29,7 @@ dnl **** Command-line arguments ****
 AC_ARG_ENABLE(win16, AS_HELP_STRING([--disable-win16],[do not include Win16 support]))
 AC_ARG_ENABLE(win64, AS_HELP_STRING([--enable-win64],[build a Win64 emulator on AMD64 (won't run Win32 binaries)]))
 AC_ARG_ENABLE(tests, AS_HELP_STRING([--disable-tests],[do not build the regression tests]))
+AC_ARG_ENABLE(dwarf2, AS_HELP_STRING([--disable-dwarf2],[do not force dwarf-2 debug symbols]))
 AC_ARG_ENABLE(maintainer-mode, AS_HELP_STRING([--enable-maintainer-mode],[enable maintainer-specific build rules]))
 
 AC_ARG_WITH(alsa,      AS_HELP_STRING([--without-alsa],[do not use the Alsa sound support]),
@@ -1748,8 +1749,13 @@ then
   WINE_TRY_CFLAGS([-Wtype-limits])
   WINE_TRY_CFLAGS([-Wunused-but-set-parameter])
   WINE_TRY_CFLAGS([-Wwrite-strings])
-  WINE_TRY_CFLAGS([-gdwarf-2])
-  WINE_TRY_CFLAGS([-gstrict-dwarf])
+
+  enable_dwarf2=${enable_dwarf2:-yes}
+  if test "x$enable_dwarf2" = "xyes"
+  then
+      WINE_TRY_CFLAGS([-gdwarf-2])
+      WINE_TRY_CFLAGS([-gstrict-dwarf])
+  fi
 
   dnl gcc-4.6+ omits frame pointers by default, breaking some copy protections
   case $host_cpu in


More information about the wine-patches mailing list