textadept: fix build with gcc 12

This commit is contained in:
Michal Vasilek 2022-11-17 19:06:01 +01:00
parent bbfa95be1b
commit 016aba15bd
1 changed files with 3 additions and 0 deletions

View File

@ -65,6 +65,9 @@ pre_configure() {
do_build() {
make deps
# fix build with gcc 12 https://github.com/orbitalquark/textadept/issues/110
# from https://aur.archlinux.org/cgit/aur.git/commit/PKGBUILD?h=textadept&id=c07c879175c8bea2f43169c71887bd9ebdf8969d
vsed -i '1008s/volatile//;1099s/volatile//;' scintilla/gtk/ScintillaGTKAccessible.cxx
make ${makejobs} GTK3=1
make ${makejobs} curses
}