guitarix2: fix build with current glib

This commit is contained in:
John 2023-04-10 02:12:07 +02:00 committed by John Zimmermann
parent 8d5e95679d
commit c3a482266f

View file

@ -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' ./)
}