30 lines
928 B
Diff
30 lines
928 B
Diff
Prevent synfigstudio from filtering out the compiler’s '-g' option to produce debug
|
||
information.
|
||
|
||
--- synfigstudio-1.4.2.orig/configure
|
||
+++ synfigstudio-1.4.2/configure
|
||
@@ -18015,8 +18015,8 @@ fi
|
||
;;
|
||
no|*)
|
||
debug_flags="-DNDEBUG"
|
||
- CXXFLAGS="`echo $CXXFLAGS | sed 's:-g[a-z-]*\s::g' | sed 's:-g[a-z-]*$::'` $debug_flags"
|
||
- CFLAGS="`echo $CFLAGS | sed 's:-g[a-z-]*\s::g' | sed 's:-g[a-z-]*$::'` $debug_flags"
|
||
+ CFLAGS="$CFLAGS -DNDEBUG"
|
||
+ CXXFLAGS="$CXXFLAGS -DNDEBUG"
|
||
;;
|
||
esac
|
||
|
||
--- synfigstudio-1.4.2.orig/m4/subs.m4
|
||
+++ synfigstudio-1.4.2/m4/subs.m4
|
||
@@ -83,8 +83,8 @@ AC_DEFUN([AC_ARG_DEBUG],
|
||
;;
|
||
no|*)
|
||
debug_flags="-DNDEBUG"
|
||
- CXXFLAGS="`echo $CXXFLAGS | sed 's:-g[[a-z-]]*\s::g' | sed 's:-g[[a-z-]]*$::'` $debug_flags"
|
||
- CFLAGS="`echo $CFLAGS | sed 's:-g[[a-z-]]*\s::g' | sed 's:-g[[a-z-]]*$::'` $debug_flags"
|
||
+ CXXFLAGS="$CXXFLAGS -DNDEBUG"
|
||
+ CFLAGS="$CFLAGS -DNDEBUG"
|
||
;;
|
||
esac
|
||
|