1
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>Cross-compiling the GLib package</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
<link rel="start" href="index.html" title="GLib Reference Manual">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.74.0">
7
<link rel="home" href="index.html" title="GLib Reference Manual">
8
8
<link rel="up" href="glib.html" title="GLib Overview">
9
9
<link rel="prev" href="glib-building.html" title="Compiling the GLib package">
10
10
<link rel="next" href="glib-compiling.html" title="Compiling GLib Applications">
11
<meta name="generator" content="GTK-Doc V1.9 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
<link rel="chapter" href="glib.html" title="GLib Overview">
14
14
<link rel="chapter" href="glib-fundamentals.html" title="GLib Fundamentals">
100
101
insufficiently capable.
101
102
Doesn't need to be set if you are compiling using trio.
103
<p><b>glib_cv_stack_grows=[yes/no]. </b>
104
<p><b>glib_cv_stack_grows=[yes/no]. </b>
104
105
Whether the stack grows up or down. Most places will want "no",
105
106
A few architectures, such as PA-RISC need "yes".
107
<p><b>glib_cv_working_bcopy=[yes/no]. </b>
108
<p><b>glib_cv_working_bcopy=[yes/no]. </b>
108
109
Whether your <code class="function">bcopy()</code> can handle overlapping
109
110
copies. Only needs to be set if you don't have
110
111
<code class="function">memmove()</code>. (Very unlikely)
112
<p><b>glib_cv_sane_realloc=[yes/np]. </b>
113
<p><b>glib_cv_sane_realloc=[yes/np]. </b>
113
114
Whether your <code class="function">realloc()</code> conforms to ANSI C
114
115
and can handle <code class="literal">NULL</code> as the first argument.
115
116
Defaults to "yes" and probably doesn't need to be set.
117
<p><b>glib_cv_have_strlcpy=[yes/no]. </b>
118
<p><b>glib_cv_have_strlcpy=[yes/no]. </b>
118
119
Whether you have <code class="function">strlcpy()</code> that matches
119
120
OpenBSD. Defaults to "no", which is safe, since GLib uses a
120
121
built-in version in that case.
122
<p><b>glib_cv_va_val_copy=[yes/no]. </b>
123
<p><b>glib_cv_va_val_copy=[yes/no]. </b>
123
124
Whether <span class="type">va_list</span> can be copied as a pointer. If set
124
125
to "no", then <code class="function">memcopy()</code> will be used. Only
125
126
matters if you don't have <code class="function">va_copy()</code> or
126
127
<code class="function">__va_copy()</code>. (So, doesn't matter for GCC.)
127
128
Defaults to "yes" which is slightly more common than "no".
129
<p><b>glib_cv_rtldglobal_broken=[yes/no]. </b>
130
<p><b>glib_cv_rtldglobal_broken=[yes/no]. </b>
130
131
Whether you have a bug found in OSF/1 v5.0. Defaults to "no".
132
<p><b>glib_cv_uscore=[yes/no]. </b>
133
<p><b>glib_cv_uscore=[yes/no]. </b>
133
134
Whether an underscore needs to be prepended to symbols when
134
135
looking them up via <code class="function">dlsym()</code>. Only needs to
135
136
be set if your system uses
136
137
<code class="function">dlopen()</code>/<code class="function">dlsym()</code>.
138
<p><b>ac_cv_func_posix_getpwuid_r=[yes/no]. </b>
139
<p><b>ac_cv_func_posix_getpwuid_r=[yes/no]. </b>
139
140
Whether you have a getpwuid_r function (in your C library,
140
141
not your thread library) that conforms to the POSIX spec.
141
142
(Takes a 'struct passwd **' as the final argument)
143
<p><b>ac_cv_func_nonposix_getpwuid_r=[yes/no]. </b>
144
<p><b>ac_cv_func_nonposix_getpwuid_r=[yes/no]. </b>
144
145
Whether you have some variant of <code class="function">getpwuid_r()</code>
145
146
that doesn't conform to to the POSIX spec, but GLib might be able
146
147
to use (or might segfault.) Only needs to be set if
147
148
<code class="literal">ac_cv_func_posix_getpwuid_r</code> is not set. It's
148
149
safest to set this to "no".
150
<p><b>glib_cv_use_pid_surrogate=[yes/no]. </b>
151
<p><b>glib_cv_use_pid_surrogate=[yes/no]. </b>
151
152
Whether to use a <code class="function">setpriority()</code> on the PID of
152
153
the thread as a method for setting the priority of threads. This
153
154
only needs to be set when using POSIX threads.
155
<p><b>ac_cv_func_printf_unix98=[yes/no]. </b>
156
<p><b>ac_cv_func_printf_unix98=[yes/no]. </b>
156
157
Whether your <code class="function">printf()</code> family supports Unix98
157
158
style <code class="literal">%N$</code> positional parameters. Defaults to
160
<p><b>ac_cv_func_vsnprintf_c99=[yes/no]. </b>
161
<p><b>ac_cv_func_vsnprintf_c99=[yes/no]. </b>
161
162
Whether you have a <code class="function">vsnprintf()</code> with C99
162
163
semantics. (C99 semantics means returning the number of bytes
163
164
that would have been written had the output buffer had enough