Set std=gnu++98 to workaround class std::auto_ptr deprecation in GCC6

parent 08f33532
...@@ -14,6 +14,8 @@ qt4-x11 (4:4.8.7+dfsg-7) UNRELEASED; urgency=medium ...@@ -14,6 +14,8 @@ qt4-x11 (4:4.8.7+dfsg-7) UNRELEASED; urgency=medium
issues while building with GCC6. issues while building with GCC6.
* Apply Better-handling-of-invalid-font-tables.patch, which is a backport * Apply Better-handling-of-invalid-font-tables.patch, which is a backport
from Qt 5 meant to improve the handling of invalid font tables. from Qt 5 meant to improve the handling of invalid font tables.
* Set std=gnu++98 to workaround class std::auto_ptr deprecation in GCC6, also
hinted by Fedora's packaging.
-- Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org> Mon, 21 Mar 2016 21:26:26 +0100 -- Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org> Mon, 21 Mar 2016 21:26:26 +0100
......
...@@ -8,7 +8,7 @@ DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) ...@@ -8,7 +8,7 @@ DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
export QTDIR := $(shell pwd) export QTDIR := $(shell pwd)
export PATH := $(QTDIR)/bin:$(PATH) export PATH := $(QTDIR)/bin:$(PATH)
export CFLAGS := $(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) export CFLAGS := $(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
export CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) export CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) -std=gnu++98
export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
# workaround to use lrelease. # workaround to use lrelease.
export LD_LIBRARY_PATH := $(QTDIR)/lib:$(LD_LIBRARY_PATH) export LD_LIBRARY_PATH := $(QTDIR)/lib:$(LD_LIBRARY_PATH)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment