🐛 Fixed freeimage build with GCC 11
This commit is contained in:
11
freeimage/all/patches/3.18.0/cpp11.patch
Normal file
11
freeimage/all/patches/3.18.0/cpp11.patch
Normal 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)
|
Reference in New Issue
Block a user