30 lines
976 B
Diff
30 lines
976 B
Diff
Prevent synfig from filtering out the compiler’s '-g' option to produce debug
|
||
information.
|
||
|
||
--- a/configure 2021-07-28 17:11:56.000000000 +0200
|
||
+++ b/configure 2021-08-09 21:35:13.846748903 +0200
|
||
@@ -19613,8 +19613,8 @@
|
||
;;
|
||
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 $debug_flags"
|
||
+ CFLAGS="$CFLAGS $debug_flags"
|
||
;;
|
||
esac
|
||
|
||
--- a/m4/subs.m4 2021-07-12 17:45:48.000000000 +0200
|
||
+++ b/m4/subs.m4 2021-08-09 21:39:39.014802968 +0200
|
||
@@ -85,8 +85,8 @@
|
||
;;
|
||
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 $debug_flags"
|
||
+ CFLAGS="$CFLAGS $debug_flags"
|
||
;;
|
||
esac
|
||
|