Package: exactimage / 1.0.2-1

Build-as-C-98-code-to-avoid-errors-when-compiling-as-C-11.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Sven Eckelmann <sven@narfation.org>
Date: Fri, 22 Jan 2016 15:11:29 +0100
Subject: Build as C++98 code to avoid errors when compiling as C++11

Bug-Debian: https://bugs.debian.org/811784
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 2074c42..5e06cbc 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ CXXFLAGS += -fPIC
 # we have some unimplemented colorspaces in the Image::iterator :-(
 CFLAGS += $(call cc-option,-Wno-switch -Wno-switch-enum,)
 
-CXXFLAGS := $(CFLAGS) -Wno-sign-compare
+CXXFLAGS := $(CFLAGS) -Wno-sign-compare -std=gnu++98
 
 ifeq "$(STATIC)" "1"
 X_EXEFLAGS += -static