diff --git a/srcpkgs/guitarix2/template b/srcpkgs/guitarix2/template index 2862d70e784..1aa3c491db8 100644 --- a/srcpkgs/guitarix2/template +++ b/srcpkgs/guitarix2/template @@ -36,3 +36,11 @@ if [ -n "$CROSS_BUILD" ]; then vsed -i "/features='test_loadable',/d" src/ladspa/wscript } fi + +post_patch() { + # we want to replace all occurrences of always_inline that are not in + # brackets or prefixed by _. + # defining always_inline as done by default breaks the [[gnu::always_inline]] attribute + vsed -e 's/\([^(_]\|^\)always_inline/\1guitarix_always_inline/g' \ + -i $(grep -rl '[^(_]always_inline' ./) +}