summaryrefslogtreecommitdiff
path: root/mk/perl.mk
blob: 0036051101ce964e50731c79e3a99632002fa858 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
PERL_VERSION=5.22.1
PERL_ARCHNAME:=$(ADK_TARGET_CPU_ARCH)-linux
PERL_SITEDIR:=/usr/lib/perl5/site_perl/$(PERL_VERSION)
PERL_INCDIR:=/usr/lib/perl5/$(PERL_VERSION)/$(PERL_ARCHNAME)/CORE
PERL_ENV:=	AR="$(TARGET_AR)" \
		FULL_AR="$(TARGET_AR)" \
		CC="$(TARGET_CC)" \
		CCFLAGS="$(TARGET_CFLAGS)" \
		OPTIMIZE=" " \
		LD="$(TARGET_CC)" \
		LDDLFLAGS="-shared $(TARGET_LDFLAGS)" \
		LDFLAGS="$(TARGET_LDFLAGS)" \
		PERL_INC=$(STAGING_TARGET_DIR)/$(PERL_INCDIR) \
		DESTDIR=$(WRKINST) \
		INSTALLDIRS=vendor \
		INSTALLVENDORLIB=$(PERL_SITEDIR) \
		INSTALLVENDORARCH=$(PERL_SITEDIR)/$(PERL_ARCHNAME) \
		INSTALLVENDORBIN=/usr/bin \
		INSTALLVENDORSCRIPT=/usr/bin
HOST_PERL_ENV:=	CC="$(CC_FOR_BUILD)" \
		CCFLAGS="$(CFLAGS_FOR_BUILD)" \
		OPTIMIZE=" " \
		LD="$(CC_FOR_BUILD)" \
		LDDLFLAGS="-shared $(LDFLAGS_FOR_BUILD)" \
		LDFLAGS="$(LDFLAGS_FOR_BUILD)" \
		DESTDIR=$(WRKINST) \
		INSTALLDIRS=vendor \
		INSTALLVENDORLIB=$(PERL_SITEDIR) \
		INSTALLVENDORARCH=$(PERL_SITEDIR)/$(PERL_ARCHNAME) \
		INSTALLVENDORBIN=/usr/bin \
		INSTALLVENDORSCRIPT=/usr/bin