mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
swig.mk: Try to fix CentOS 7 perl target
Detect PERL_CORE_DIR /usr/lib64/perl5/CORE, as in CentOS 7. Still doesn't work, as compilation fails on the generated C++ code. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
f4ea4b5537
commit
f5c33174fb
1 changed files with 2 additions and 2 deletions
|
|
@ -80,8 +80,8 @@ else ifeq ($(SWIG_TARGET),perl)
|
|||
SWIG_TARGET_EXT ?= pm
|
||||
SWIG_OPTS ?= -perl
|
||||
PERL_VERSION ?= $(patsubst v%,%,$(shell perl -e 'print $$^V;'))
|
||||
PERL_BASE_DIR ?= $(ENV_PREFIX)/usr/lib/perl5
|
||||
PERL_CORE_DIR ?= $(PERL_BASE_DIR)/$(PERL_VERSION)/$(ARCH)-linux-thread-multi/CORE/
|
||||
PERL_BASE_DIR ?= $(ENV_PREFIX)$(firstword $(wildcard /usr/lib64/perl5 /usr/lib/perl5))
|
||||
PERL_CORE_DIR ?= $(firstword $(wildcard $(PERL_BASE_DIR)/$(PERL_VERSION)/$(ARCH)-linux-thread-multi/CORE/ $(PERL_BASE_DIR)/CORE))
|
||||
PERL_VENDOR_DIR ?= $(PERL_BASE_DIR)/vendor_perl/$(PERL_VERSION)/$(ARCH)-linux-thread-multi
|
||||
INCLUDE += -I$(PERL_CORE_DIR)
|
||||
SWIG_CLEAN += $(wildcard *.$(SWIG_TARGET_EXT))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue