… | |
… | |
7 | CPAN=http://mirror.netcologne.de/cpan # which mirror to use |
7 | CPAN=http://mirror.netcologne.de/cpan # which mirror to use |
8 | EMAIL="read the documentation <rtfm@example.org>" |
8 | EMAIL="read the documentation <rtfm@example.org>" |
9 | |
9 | |
10 | # perl build variables |
10 | # perl build variables |
11 | PERL_VERSION=5.12.2 # 5.8.9 is also a good choice |
11 | PERL_VERSION=5.12.2 # 5.8.9 is also a good choice |
|
|
12 | PERL_CC=cc |
12 | PERL_CONFIGURE="" # additional Configure arguments |
13 | PERL_CONFIGURE="" # additional Configure arguments |
13 | PERL_CPPFLAGS="-DPERL_DISABLE_PMC -DPERL_ARENA_SIZE=65536 -D_GNU_SOURCE -DNDEBUG -USITELIB_EXP -USITEARCHEXP -UARCHLIB_EXP" |
14 | PERL_CPPFLAGS="-DPERL_DISABLE_PMC -DPERL_ARENA_SIZE=65536 -D_GNU_SOURCE -DNDEBUG -USITELIB_EXP -USITEARCHEXP -UARCHLIB_EXP" |
14 | PERL_OPTIMIZE="-Os -ffunction-sections -fdata-sections -finline-limit=8 -ffast-math" |
15 | PERL_OPTIMIZE="-Os -ffunction-sections -fdata-sections -finline-limit=8 -ffast-math" |
15 | |
16 | |
16 | ARCH="$(uname -m)" |
17 | ARCH="$(uname -m)" |
… | |
… | |
198 | -Dusemymalloc=n \ |
199 | -Dusemymalloc=n \ |
199 | -Uusedl \ |
200 | -Uusedl \ |
200 | -Uusethreads \ |
201 | -Uusethreads \ |
201 | -Uuseithreads \ |
202 | -Uuseithreads \ |
202 | -Uusemultiplicity \ |
203 | -Uusemultiplicity \ |
203 | -Duseperlio \ |
|
|
204 | -Uusesfio \ |
204 | -Uusesfio \ |
205 | -Uuseshrplib \ |
205 | -Uuseshrplib \ |
|
|
206 | -Dcc="$PERL_CC" \ |
206 | -Dcppflags="$PERL_CPPFLAGS" \ |
207 | -Dcppflags="$PERL_CPPFLAGS" \ |
207 | -Dccflags="-g2 -fno-strict-aliasing" \ |
208 | -Dccflags="-g2 -fno-strict-aliasing" \ |
208 | -Doptimize="$PERL_OPTIMIZE" \ |
209 | -Doptimize="$PERL_OPTIMIZE" \ |
209 | -Dldflags="$PERL_LDFLAGS" \ |
210 | -Dldflags="$PERL_LDFLAGS" \ |
210 | -Dlibs="$PERL_LIBS" \ |
211 | -Dlibs="$PERL_LIBS" \ |
… | |
… | |
223 | -Dpager=/usr/bin/less \ |
224 | -Dpager=/usr/bin/less \ |
224 | -Demail="$EMAIL" \ |
225 | -Demail="$EMAIL" \ |
225 | -Dcf_email="$EMAIL" \ |
226 | -Dcf_email="$EMAIL" \ |
226 | -Dcf_by="$EMAIL" \ |
227 | -Dcf_by="$EMAIL" \ |
227 | $PERL_CONFIGURE \ |
228 | $PERL_CONFIGURE \ |
|
|
229 | -Duseperlio \ |
228 | -dE || fatal "Configure failed" |
230 | -dE || fatal "Configure failed" |
229 | |
231 | |
230 | sedreplace ' |
232 | sedreplace ' |
231 | s/-Wl,--no-gc-sections/-Wl,--gc-sections/g |
233 | s/-Wl,--no-gc-sections/-Wl,--gc-sections/g |
232 | s/ *-fno-stack-protector */ /g |
234 | s/ *-fno-stack-protector */ /g |