Files
ceamac-overlay/media-gfx/synfig/files/synfig-1.4.0-fix-cflags.patch
Viorel 2c9048f676 media-gfx/synfig: v1.4.1
Package-Manager: Portage-3.0.18, Repoman-3.0.2
2021-06-01 09:58:32 +03:00

28 lines
981 B
Diff

Keep sed from mangling our CFLAGS
especially -frecord-gcc-flags, which was half removed because it contains -g
--- a/m4/subs.m4 2020-11-13 12:21:45.000000000 +0200
+++ b/m4/subs.m4 2021-03-13 19:19:48.626353955 +0200
@@ -77,16 +77,16 @@
case "$debug" in
yes)
- debug_flags="-D_DEBUG -g -O0"
+ debug_flags="-D_DEBUG"
BIGOBJ_FLAGS=""
($CC --version | grep -q mingw) && BIGOBJ_FLAGS="-Wa,-mbig-obj"
- CXXFLAGS="`echo $CXXFLAGS | sed s:-O.::` $debug_flags -fno-inline $BIGOBJ_FLAGS"
- CFLAGS="`echo $CFLAGS | sed s:-O.::` $debug_flags"
+ CXXFLAGS="${CXXFLAGS} $debug_flags -fno-inline $BIGOBJ_FLAGS"
+ CFLAGS="${CFLAGS} $debug_flags"
;;
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