mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
swig.mk: Add -DJW_PHP_MAJOR to swig to allow conditional compilation
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
bc9a159275
commit
cd82a0d1fc
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue