4
### Copyright Ericsson AB 2009. All Rights Reserved.
6
### The contents of this file are subject to the Erlang Public License,
7
### Version 1.1, (the "License"); you may not use this file except in
8
### compliance with the License. You should have received a copy of the
9
### Erlang Public License along with this software. If not, it can be
10
### retrieved online at http://www.erlang.org/.
12
### Software distributed under the License is distributed on an "AS IS"
13
### basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
### the License for the specific language governing rights and limitations
15
### under the License.
19
### File: erl-xcomp.conf
20
### Author: Rickard Green
23
### ----------------------------------------------------------------------------
24
### When cross compiling Erlang/OTP, copy this file and set the variables
25
### needed below. Then pass the path to the copy of this file as an argument
26
### to "eval `otp_build env_cross <absolute path to erl-xcomp.conf file>`".
27
### ----------------------------------------------------------------------------
29
### ----------------------------------------------------------------------------
30
### Variables in the following section *have* to be set.
34
## Operating system and hardware architecture.
36
# Operating system: linux|solaris<ver>|darwin|freebsd|win32|<...>
38
# Hardware architecture: x86|x86_64|ultrasparc|sparc64|ppc|arm|tile|<...>
39
# Note that this will be the host parameter to configure, so it
40
# should be both recognizable by config.sub and a valid prefix for
41
# i.e. gcc etc if compiler is not specified further down.
43
# Manufacturer: (unknown is ok)
45
# Extra target info (unknown is ok)
46
erl_xcomp_target_xtra=
48
# Target (change if default isn't satisfactory)
49
# Note that this has to correspond to what config.sub thinks the machine is.
50
# Edit config.sub if not satisfactory, or set this explicitly
51
# to what output you will get from running
52
# $ERL_TOP/erts/autoconf/config.sub $erl_xcomp_hw
54
erl_xcomp_target=${erl_xcomp_hw}-${erl_xcomp_man}-${erl_xcomp_os}-${erl_xcomp_target_xtra}
57
## Sizes (in bytes) of some important types.
67
# long long (use 0 if no 'long long' type exist)
70
erl_xcomp_sizeof_size_t=
72
erl_xcomp_sizeof_off_t=
74
### ----------------------------------------------------------------------------
75
### The variables in the following section have to be set for linux systems
77
# linux kernel version (as reported by "uname -r")
78
erl_xcomp_linux_kernel=
80
### ----------------------------------------------------------------------------
81
### ---------------------------------------------------------------------------
82
### To override the configure flags for a special target system, You
83
### can set this variable which overrides configure parameters on the
84
### command line and instead uses the specified options. The variable
85
### leaves the build-host system untouched.
86
### ---------------------------------------------------------------------------
87
erl_xcomp_configure_flags=
89
###----------------------------------------------------------------------------
90
### You can specify a specific CC or LD for the build target (the cross
91
### compiler) here along with magic CFLAGS and/or LDFLAGS if needed
92
### ar and ranlib might also be specified if needed.
93
###----------------------------------------------------------------------------
109
###----------------------------------------------------------------------------
110
### The ded_ls and ded_ldflags variables control linking of dynamically loaded
111
### erlang drivers. On i.e. Linux these are set to
112
### $(CC) and "-shared" respectively, but other OS'es might need other
113
### programs and flags to build a dynamic library.
114
### erl_xcomp_ded_ld_runtime_library_path is the flag to set a
115
### specific runtime library path for the shared library at link time,
116
### usually this should be left empty.
117
###----------------------------------------------------------------------------
121
erl_xcomp_ded_ldflags=
123
erl_xcomp_ded_ld_runtime_library_path=
125
### The variables in the following section does not need to be set. Only
126
### set these if you really know what you are doing.
130
## Big endian/little endian can usually be determined by configure correctly,
131
## but if not, set this variable
136
## If you have a working poll that can be used: yes|no
141
## If you have a working kqueue() that can be used: yes|no
146
## If you have a putenv() that stores a copy of the key-value pair: yes|no
148
erl_xcomp_putenv_copy=
151
## If you have reliable floating point exeptions that can be
154
erl_xcomp_reliable_fpe=
157
## If you have getaddrinfo() usable for ipv6: yes|no
159
erl_xcomp_getaddrinfo=
162
## If you have a gethrvtime() that works and uses ioctl()
163
## to /proc/self: yes|no
165
erl_xcomp_gethrvtime_procfs_ioctl=
168
## If you have a working clock_gettime(): yes|no
170
erl_xcomp_clock_gettime=
173
## If you have a __after_morecore_hook that can track malloc()s
174
## core memory use: yes|no
176
erl_xcomp_after_morecore_hook=
179
## If you have brk, sbrk and end symbols: yes|no
186
erl_xcomp_have___brk=
190
erl_xcomp_have__sbrk=
192
erl_xcomp_have___sbrk=
199
## If sbrk/brk wrappers using dlsym(RTLD_NEXT, _) can track malloc()s
200
## core memory use: yes|no
202
erl_xcomp_brk_wrappers=
204
### ----------------------------------------------------------------------------