-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (36 loc) · 1.79 KB
/
Makefile
File metadata and controls
44 lines (36 loc) · 1.79 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
PKG_NAME = erlang
PKG_VERS = 26.2.5.16
PKG_EXT = tar.gz
PKG_DIST_NAME = OTP-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/erlang/otp/archive
PKG_DIST_FILE = $(PKG_NAME)-OTP-$(PKG_VERS).$(PKG_EXT)
PKG_DIR = otp-OTP-$(PKG_VERS)
BUILD_DEPENDS = native/erlang
DEPENDS = cross/ncursesw cross/openssl3
HOMEPAGE = https://www.erlang.org
COMMENT = Erlang is a programming language used to build massively scalable soft real-time systems with requirements on high availability.
LICENSE = Apache 2.0
NATIVE_ERLANG_BIN_DIR = $(realpath $(WORK_DIR)/../../../native/erlang/work-native/install/usr/local/bin)
ENV = PATH=$$PATH:$(NATIVE_ERLANG_BIN_DIR)
INSTALL_MAKE_OPTIONS = install DESTDIR=$(INSTALL_DIR) INSTALL_PREFIX=
CONFIGURE_ARGS = --without-javac
CONFIGURE_ARGS += --without-jinterface
CONFIGURE_ARGS += --without-odbc
CONFIGURE_ARGS += --without-wx
CONFIGURE_ARGS += --enable-dynamic-ssl-lib
CONFIGURE_ARGS += --with-ssl=$(STAGING_INSTALL_PREFIX)
CONFIGURE_ARGS += erl_xcomp_sysroot=$(INSTALL_DIR)
CONFIGURE_ARGS += CFLAGS="-O2 -g -D_GNU_SOURCE"
include ../../mk/spksrc.archs.mk
# custom definition of args normally defined with GNU_CONFIGURE = 1, to force cross compilation (see below)
CONFIGURE_ARGS += --host=$(TC_TARGET) --prefix=$(INSTALL_PREFIX)
ifeq ($(findstring $(ARCH),$(i686_ARCHS)),$(ARCH))
# force cross compilation for i686 to avoid the following error:
# We are cross compiling since the '--host=i686-pc-linux-gnu' and the '--build=i686-pc-linux' arguments differ.
# When cross compiling Erlang/OTP also the canonicalized values of the '--build' and the '--host' arguments *must* differ.
# The canonicalized values of these arguments however both equals: i686-pc-linux-gnu
CONFIGURE_ARGS += --build=x86_64-pc-linux
else
CONFIGURE_ARGS += --build=i686-pc-linux
endif
include ../../mk/spksrc.cross-cc.mk