as31: Change optimization level from 2 to 0
authorJason Self <j@jxself.org>
Sat, 17 Feb 2018 21:59:22 +0000 (13:59 -0800)
committerJason Self <j@jxself.org>
Sat, 17 Feb 2018 21:59:22 +0000 (13:59 -0800)
This avoids a segmentation fault when building the usbdux firmware.

as31/configure

index 9e0cf004656fe21ab76022a337689ced2dc425b4..022aeec512dca8197d8c65e2f5c8e5658b442ca2 100755 (executable)
@@ -2826,13 +2826,13 @@ if test "$ac_test_CFLAGS" = set; then
   CFLAGS=$ac_save_CFLAGS
 elif test $ac_cv_prog_cc_g = yes; then
   if test "$GCC" = yes; then
-    CFLAGS="-g -O2"
+    CFLAGS="-g -O0"
   else
     CFLAGS="-g"
   fi
 else
   if test "$GCC" = yes; then
-    CFLAGS="-O2"
+    CFLAGS="-O0"
   else
     CFLAGS=
   fi