🐛 Fixed freeimage build with GCC 11

This commit is contained in:
2021-08-09 15:53:33 +02:00
parent 5b1f168fcf
commit 1ff57b2f9a
3 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,11 @@
--- Makefile.gnu
+++ Makefile.gnu
@@ -25,7 +25,7 @@
CFLAGS += $(INCLUDE)
CXXFLAGS ?= -O3 -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy
# LibJXR
-CXXFLAGS += -D__ANSI__
+CXXFLAGS += -D__ANSI__ -std=c++11
CXXFLAGS += $(INCLUDE)
ifeq ($(shell sh -c 'uname -m 2>/dev/null || echo not'),x86_64)