void-packages/srcpkgs/synfig/patches/cflags-cxxflags.patch
2021-11-16 09:22:02 -03:00

29 lines
976 B
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Prevent synfig from filtering out the compilers '-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