Skip to content

Commit 12c79be

Browse files
committed
lr-dosbox: fix building with GCC 11+
Reported upstream, but not fixed. Workaround is to force C++11 as dialect, suggested in libretro/dosbox-libretro#137
1 parent 75cfcb1 commit 12c79be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scriptmodules/libretrocores/lr-dosbox.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ function build_lr-dosbox() {
3131
fi
3232
fi
3333
make clean
34+
[[ "$__gcc_version" -gt 10 ]] && CXXFLAGS="$CXXFLAGS -std=gnu++11"
3435
make "${params[@]}"
3536
md_ret_require="$md_build/dosbox_libretro.so"
3637
}

0 commit comments

Comments
 (0)