Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 259 lines (201 sloc) 10.384 kB
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
1 #### -*-shell-script-*-
2 ####
3 #### %CopyrightBegin%
4 ####
5 #### Copyright Ericsson AB 2009-2010. All Rights Reserved.
6 ####
7 #### The contents of this file are subject to the Erlang Public License,
8 #### Version 1.1, (the "License"); you may not use this file except in
9 #### compliance with the License. You should have received a copy of the
10 #### Erlang Public License along with this software. If not, it can be
11 #### retrieved online at http://www.erlang.org/.
12 ####
13 #### Software distributed under the License is distributed on an "AS IS"
14 #### basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
15 #### the License for the specific language governing rights and limitations
16 #### under the License.
17 ####
18 #### %CopyrightEnd%
19 ####
20 #### File: erl-xcomp-TileraMDE2.0-tilepro.conf
21 #### Author: Rickard Green
22 ####
23 #### --------------------------------------------------------------------------
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
24 #### When cross compiling Erlang/OTP using `otp_build`, copy this file and set
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
25 #### the variables needed below. Then pass the path to the copy of this file as
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
26 #### an argument to `otp_build` in the configure stage:
27 #### `otp_build configure --xcomp-conf=<FILE>`
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
28 #### --------------------------------------------------------------------------
29
30 ### Note that you cannot define arbitrary variables in a cross compilation
31 ### configuration file. Only the ones listed below will be guaranteed to be
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
32 ### visible throughout the whole execution of all `configure` scripts. Other
33 ### variables needs to be defined as arguments to `configure` or exported in
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
34 ### the environment.
35
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
36 ### ### Variables for `otp_build` Only ###
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
37
38 ### Variables in this section are only used, when configuring Erlang/OTP for
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
39 ### cross compilation using `$ERL_TOP/otp_build configure`.
40
41 ### *NOTE*! These variables currently have *no* effect if you configure using
42 ### the `configure` script directly.
43
44 ## `erl_xcomp_build` - The build system used. This value will be passed as
45 ## `--build=$erl_xcomp_build` argument to the `configure` script. It does
46 ## not have to be a full `CPU-VENDOR-OS` triplet, but can be. The full
47 ## `CPU-VENDOR-OS` triplet will be created by
48 ## `$ERL_TOP/erts/autoconf/config.sub $erl_xcomp_build`.
49 ## If set to `guess`, the build system will be guessed using
50 ## `$ERL_TOP/erts/autoconf/config.guess`.
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
51 erl_xcomp_build=guess
52
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
53 ## `erl_xcomp_host` - Cross host/target system to build for. This value will
54 ## be passed as `--host=$erl_xcomp_host` argument to the `configure` script.
55 ## It does not have to be a full `CPU-VENDOR-OS` triplet, but can be. The
56 ## full `CPU-VENDOR-OS` triplet will be created by:
57 ## `$ERL_TOP/erts/autoconf/config.sub $erl_xcomp_host`
4c67dcc @rickard-green OTP-8323 Miscellaneous cross compilation improvements. For example, one
rickard-green authored
58 erl_xcomp_host=tile
84adefa The R13B03 release.
Erlang/OTP authored
59
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
60 ## `erl_xcomp_configure_flags` - Extra configure flags to pass to the
61 ## `configure` script.
84adefa The R13B03 release.
Erlang/OTP authored
62 erl_xcomp_configure_flags="--without-termcap"
63
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
64 ### ### Cross Compiler and Other Tools ###
84adefa The R13B03 release.
Erlang/OTP authored
65
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
66 ### If the cross compilation tools are prefixed by `<HOST>-` you probably do
67 ### not need to set these variables (where `<HOST>` is what has been passed as
68 ### `--host=<HOST>` argument to `configure`).
84adefa The R13B03 release.
Erlang/OTP authored
69
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
70 ### All variables in this section can also be used when native compiling.
71
72 ## `CC` - C compiler.
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
73 #CC=
84adefa The R13B03 release.
Erlang/OTP authored
74
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
75 ## `CFLAGS` - C compiler flags.
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
76 #CFLAGS=
84adefa The R13B03 release.
Erlang/OTP authored
77
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
78 ## `STATIC_CFLAGS` - Static C compiler flags.
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
79 #STATIC_CFLAGS=
84adefa The R13B03 release.
Erlang/OTP authored
80
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
81 ## `CFLAG_RUNTIME_LIBRARY_PATH` - This flag should set runtime library
82 ## search path for the shared libraries. Note that this actually is a
83 ## linker flag, but it needs to be passed via the compiler.
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
84 #CFLAG_RUNTIME_LIBRARY_PATH=
84adefa The R13B03 release.
Erlang/OTP authored
85
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
86 ## `CPP` - C pre-processor.
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
87 #CPP=
84adefa The R13B03 release.
Erlang/OTP authored
88
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
89 ## `CPPFLAGS` - C pre-processor flags.
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
90 #CPPFLAGS=
84adefa The R13B03 release.
Erlang/OTP authored
91
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
92 ## `CXX` - C++ compiler.
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
93 #CXX=
84adefa The R13B03 release.
Erlang/OTP authored
94
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
95 ## `CXXFLAGS` - C++ compiler flags.
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
96 #CXXFLAGS=
84adefa The R13B03 release.
Erlang/OTP authored
97
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
98 ## `LD` - Linker.
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
99 #LD=
84adefa The R13B03 release.
Erlang/OTP authored
100
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
101 ## `LDFLAGS` - Linker flags.
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
102 #LDFLAGS=
84adefa The R13B03 release.
Erlang/OTP authored
103
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
104 ## `LIBS` - Libraries.
2db7517 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
105 #LIBS=
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
106
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
107 ### #### *D*ynamic *E*rlang *D*river Linking ####
2db7517 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
108
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
109 ### *NOTE*! Either set all or none of the `DED_LD*` variables.
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
110
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
111 ## `DED_LD` - Linker for Dynamically loaded Erlang Drivers.
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
112 #DED_LD=
113
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
114 ## `DED_LDFLAGS` - Linker flags to use with `DED_LD`.
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
115 #DED_LDFLAGS=
116
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
117 ## `DED_LD_FLAG_RUNTIME_LIBRARY_PATH` - This flag should set runtime library
118 ## search path for shared libraries when linking with `DED_LD`.
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
119 #DED_LD_FLAG_RUNTIME_LIBRARY_PATH=
120
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
121 ### #### Large File Support ####
2db7517 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
122
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
123 ### *NOTE*! Either set all or none of the `LFS_*` variables.
2db7517 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
124
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
125 ## `LFS_CFLAGS` - Large file support C compiler flags.
2db7517 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
126 #LFS_CFLAGS=
127
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
128 ## `LFS_LDFLAGS` - Large file support linker flags.
2db7517 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
129 #LFS_LDFLAGS=
130
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
131 ## `LFS_LIBS` - Large file support libraries.
2db7517 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
132 #LFS_LIBS=
133
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
134 ### #### Other Tools ####
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
135
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
136 ## `RANLIB` - `ranlib` archive index tool.
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
137 #RANLIB=
138
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
139 ## `AR` - `ar` archiving tool.
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
140 #AR=
141
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
142 ## `GETCONF` - `getconf` system configuration inspection tool. `getconf` is
143 ## currently used for finding out large file support flags to use, and
144 ## on Linux systems for finding out if we have an NPTL thread library or
145 ## not.
2db7517 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
146 #GETCONF=
147
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
148 ### ### Cross System Root Locations ###
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
149
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
150 ## `erl_xcomp_sysroot` - The absolute path to the system root of the cross
151 ## compilation environment. Currently, the `crypto`, `odbc`, `ssh` and
152 ## `ssl` applications need the system root. These applications will be
153 ## skipped if the system root has not been set. The system root might be
154 ## needed for other things too. If this is the case and the system root
155 ## has not been set, `configure` will fail and request you to set it.
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
156 erl_xcomp_sysroot="$TILERA_ROOT/tile"
157
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
158 ## `erl_xcomp_isysroot` - The absolute path to the system root for includes
159 ## of the cross compilation environment. If not set, this value defaults
160 ## to `$erl_xcomp_sysroot`, i.e., only set this value if the include system
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
161 ## root path is not the same as the system root path.
162 #erl_xcomp_isysroot=
163
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
164 ### ### Optional Feature, and Bug Tests ###
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
165
166 ### These tests cannot (always) be done automatically when cross compiling. You
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
167 ### usually do not need to set these variables. Only set these if you really
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
168 ### know what you are doing.
169
2db7517 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
170 ### Note that some of these values will override results of tests performed
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
171 ### by `configure`, and some will not be used until `configure` is sure that
2db7517 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
172 ### it cannot figure the result out.
173
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
174 ### The `configure` script will issue a warning when a default value is used.
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
175 ### When a variable has been set, no warning will be issued.
84adefa The R13B03 release.
Erlang/OTP authored
176
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
177 ## `erl_xcomp_after_morecore_hook` - `yes|no`. Defaults to `no`. If `yes`, the
178 ## target system must have a working `__after_morecore_hook` that can be
179 ## used for tracking used `malloc()` implementations core memory usage.
180 ## This is currently only used by unsupported features.
181 #erl_xcomp_after_morecore_hook=
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
182
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
183 ## `erl_xcomp_bigendian` - `yes|no`. No default. If `yes`, the target system
184 ## must be big endian. If `no`, little endian. This can often be
185 ## automatically detected, but not always. If not automatically detected,
186 ## `configure` will fail unless this variable is set. Since no default
187 ## value is used, `configure` will try to figure this out automatically.
188 #erl_xcomp_bigendian=
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
189
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
190 ## `erl_xcomp_clock_gettime_cpu_time` - `yes|no`. Defaults to `no`. If `yes`,
191 ## the target system must have a working `clock_gettime()` implementation
192 ## that can be used for retrieving process CPU time.
193 #erl_xcomp_clock_gettime_cpu_time=
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
194
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
195 ## `erl_xcomp_getaddrinfo` - `yes|no`. Defaults to `no`. If `yes`, the target
196 ## system must have a working `getaddrinfo()` implementation that can
197 ## handle both IPv4 and IPv6.
198 erl_xcomp_getaddrinfo=yes
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
199
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
200 ## `erl_xcomp_gethrvtime_procfs_ioctl` - `yes|no`. Defaults to `no`. If `yes`,
201 ## the target system must have a working `gethrvtime()` implementation and
202 ## is used with procfs `ioctl()`.
203 #erl_xcomp_gethrvtime_procfs_ioctl=
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
204
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
205 ## `erl_xcomp_dlsym_brk_wrappers` - `yes|no`. Defaults to `no`. If `yes`, the
206 ## target system must have a working `dlsym(RTLD_NEXT, <S>)` implementation
207 ## that can be used on `brk` and `sbrk` symbols used by the `malloc()`
208 ## implementation in use, and by this track the `malloc()` implementations
209 ## core memory usage. This is currently only used by unsupported features.
210 #erl_xcomp_dlsym_brk_wrappers=
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
211
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
212 ## `erl_xcomp_kqueue` - `yes|no`. Defaults to `no`. If `yes`, the target system
213 ## must have a working `kqueue()` implementation that returns a file
214 ## descriptor which can be used by `poll()` and/or `select()`. If `no` and
215 ## the target system has not got `epoll()` or `/dev/poll`, the kernel-poll
216 ## feature will be disabled.
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
217 #erl_xcomp_kqueue=
218
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
219 ## `erl_xcomp_linux_clock_gettime_correction` - `yes|no`. Defaults to `yes` on
220 ## Linux; otherwise, `no`. If `yes`, `clock_gettime(CLOCK_MONOTONIC, _)` on
221 ## the target system must work. This variable is recommended to be set to
222 ## `no` on Linux systems with kernel versions less than 2.6.
223 #erl_xcomp_linux_clock_gettime_correction=
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
224
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
225 ## `erl_xcomp_linux_nptl` - `yes|no`. Defaults to `yes` on Linux; otherwise,
226 ## `no`. If `yes`, the target system must have NPTL (Native POSIX Thread
227 ## Library). Older Linux systems have LinuxThreads instead of NPTL (Linux
228 ## kernel versions typically less than 2.6).
229 #erl_xcomp_linux_nptl=
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
230
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
231 ## `erl_xcomp_linux_usable_sigaltstack` - `yes|no`. Defaults to `yes` on Linux;
232 ## otherwise, `no`. If `yes`, `sigaltstack()` must be usable on the target
233 ## system. `sigaltstack()` on Linux kernel versions less than 2.4 are
234 ## broken.
235 #erl_xcomp_linux_usable_sigaltstack=
84adefa The R13B03 release.
Erlang/OTP authored
236
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
237 ## `erl_xcomp_linux_usable_sigusrx` - `yes|no`. Defaults to `yes`. If `yes`,
238 ## the `SIGUSR1` and `SIGUSR2` signals must be usable by the ERTS. Old
239 ## LinuxThreads thread libraries (Linux kernel versions typically less than
240 ## 2.2) used these signals and made them unusable by the ERTS.
241 #erl_xcomp_linux_usable_sigusrx=
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
242
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
243 ## `erl_xcomp_poll` - `yes|no`. Defaults to `no` on Darwin/MacOSX; otherwise,
244 ## `yes`. If `yes`, the target system must have a working `poll()`
245 ## implementation that also can handle devices. If `no`, `select()` will be
246 ## used instead of `poll()`.
247 #erl_xcomp_poll=
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
248
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
249 ## `erl_xcomp_putenv_copy` - `yes|no`. Defaults to `no`. If `yes`, the target
250 ## system must have a `putenv()` implementation that stores a copy of the
251 ## key/value pair.
252 #erl_xcomp_putenv_copy=
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
253
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
254 ## `erl_xcomp_reliable_fpe` - `yes|no`. Defaults to `no`. If `yes`, the target
255 ## system must have reliable floating point exceptions.
256 #erl_xcomp_reliable_fpe=
1b78e85 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
257
70f9744 @rickard-green OTP-8323 Cross compilation improvements and other build system
rickard-green authored
258 ####
Something went wrong with that request. Please try again.