… | |
… | |
10 | |
10 | |
11 | MKBUNDLE="$STATICPERL/mkbundle" |
11 | MKBUNDLE="$STATICPERL/mkbundle" |
12 | |
12 | |
13 | # perl build variables |
13 | # perl build variables |
14 | PREFIX="$STATICPERL/perl" # where the perl gets installed |
14 | PREFIX="$STATICPERL/perl" # where the perl gets installed |
|
|
15 | PERL_CONFIGURE="" # additional Configure arguments |
15 | PERL_CPPFLAGS="-DPERL_DISABLE_PMC -DPERL_ARENA_SIZE=65536 -D_GNU_SOURCE -DNDEBUG -USITELIB_EXP -USITEARCHEXP -UARCHLIB_EXP" |
16 | PERL_CPPFLAGS="-DPERL_DISABLE_PMC -DPERL_ARENA_SIZE=65536 -D_GNU_SOURCE -DNDEBUG -USITELIB_EXP -USITEARCHEXP -UARCHLIB_EXP" |
16 | PERL_OPTIMIZE="-Os -ffunction-sections -fdata-sections -finline-limit=8 -ffast-math" |
17 | PERL_OPTIMIZE="-Os -ffunction-sections -fdata-sections -finline-limit=8 -ffast-math" |
17 | |
18 | |
18 | ARCH="$(uname -m)" |
19 | ARCH="$(uname -m)" |
19 | |
20 | |
… | |
… | |
211 | -Usiteman3dir \ |
212 | -Usiteman3dir \ |
212 | -Dpager=/usr/bin/less \ |
213 | -Dpager=/usr/bin/less \ |
213 | -Demail="$EMAIL" \ |
214 | -Demail="$EMAIL" \ |
214 | -Dcf_email="$EMAIL" \ |
215 | -Dcf_email="$EMAIL" \ |
215 | -Dcf_by="$EMAIL" \ |
216 | -Dcf_by="$EMAIL" \ |
|
|
217 | $PERL_CONFIGURE \ |
216 | -dE || fatal "Configure failed" |
218 | -dE || fatal "Configure failed" |
217 | |
219 | |
218 | sedreplace ' |
220 | sedreplace ' |
219 | s/-Wl,--no-gc-sections/-Wl,--gc-sections/g |
221 | s/-Wl,--no-gc-sections/-Wl,--gc-sections/g |
220 | s/ *-fno-stack-protector */ /g |
222 | s/ *-fno-stack-protector */ /g |