From cd82a0d1fc51abf2e6010698fad0c40f8b81e146 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Wed, 3 Jan 2018 16:44:34 +0000 Subject: [PATCH] swig.mk: Add -DJW_PHP_MAJOR to swig to allow conditional compilation Signed-off-by: Jan Lindemann --- make/swig.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/swig.mk b/make/swig.mk index 310d1023..5e98f8af 100644 --- a/make/swig.mk +++ b/make/swig.mk @@ -7,7 +7,7 @@ ifeq ($(SWIG_TARGET),php) PHP_MAJOR := $(shell php-config --version | cut -d. -f1) PHP ?= php$(PHP_MAJOR) #PHP ?= $(firstword $(notdir $(wildcard /usr/share/php*))) - SWIG_OPTS ?= -$(PHP) + SWIG_OPTS ?= -$(PHP) -DJW_PHP_MAJOR=$(PHP_MAJOR) SWIG_MODULE_TARGET_DIR = $(ENV_PREFIX)/usr/share/$(PHP) #SWIG_PHP_INCLUDE_DIR = /usr/include/$(PHP)