Skip to content
Snippets Groups Projects
Unverified Commit 3f56ba33 authored by Ondrej Sury's avatar Ondrej Sury
Browse files

Use ICU >= 75 version to determine the need for C++11 or C++17

parent 9a664713
No related branches found
No related tags found
No related merge requests found
......@@ -33,12 +33,12 @@ PHP_MAJOR_VERSION := $(shell echo $(PHP_DFSG_VERSION) | awk -F. '{print $$1}'
PHP_MINOR_VERSION := $(shell echo $(PHP_DFSG_VERSION) | awk -F. '{print $$2}')
PHP_RELEASE_VERSION := $(shell echo $(PHP_DFSG_VERSION) | awk -F. '{print $$3}')
ifeq ($(DEB_DISTRIBUTION),$(filter $(DEB_DISTRIBUTION),jessie stretch xenial bionic))
export ICU_CXXFLAGS := -std=c++11
endif
ICU_VERSION := $(shell dpkg -s libicu-dev | sed -ne 's/^Version: \(.*\)$$/\1/p')
ifeq ($(DEB_DISTRIBUTION),$(filter $(DEB_DISTRIBUTION),trixie))
ifeq ($(shell dpkg --compare-versions $(ICU_VERSION) ge 75;echo $$?),0)
export ICU_CXXFLAGS := -std=c++17
else
export ICU_CXXFLAGS := -std=c++11
endif
# Enable ZTS build if $(DEB_SOURCE) ends with -zts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment