ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/App-Staticperl/staticperl.sh
(Generate patch)

Comparing App-Staticperl/staticperl.sh (file contents):
Revision 1.18 by root, Mon Dec 13 16:34:13 2010 UTC vs.
Revision 1.19 by root, Mon Dec 13 17:25:17 2010 UTC

7CPAN=http://mirror.netcologne.de/cpan # which mirror to use 7CPAN=http://mirror.netcologne.de/cpan # which mirror to use
8EMAIL="read the documentation <rtfm@example.org>" 8EMAIL="read the documentation <rtfm@example.org>"
9 9
10# perl build variables 10# perl build variables
11PERL_VERSION=5.12.2 # 5.8.9 is also a good choice 11PERL_VERSION=5.12.2 # 5.8.9 is also a good choice
12PERL_CC=cc
12PERL_CONFIGURE="" # additional Configure arguments 13PERL_CONFIGURE="" # additional Configure arguments
13PERL_CPPFLAGS="-DPERL_DISABLE_PMC -DPERL_ARENA_SIZE=65536 -D_GNU_SOURCE -DNDEBUG -USITELIB_EXP -USITEARCHEXP -UARCHLIB_EXP" 14PERL_CPPFLAGS="-DPERL_DISABLE_PMC -DPERL_ARENA_SIZE=65536 -D_GNU_SOURCE -DNDEBUG -USITELIB_EXP -USITEARCHEXP -UARCHLIB_EXP"
14PERL_OPTIMIZE="-Os -ffunction-sections -fdata-sections -finline-limit=8 -ffast-math" 15PERL_OPTIMIZE="-Os -ffunction-sections -fdata-sections -finline-limit=8 -ffast-math"
15 16
16ARCH="$(uname -m)" 17ARCH="$(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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines