… | |
… | |
949 | F<~/.staticperlrc> to override them. |
949 | F<~/.staticperlrc> to override them. |
950 | |
950 | |
951 | Most of the variables override (or modify) the corresponding F<Configure> |
951 | Most of the variables override (or modify) the corresponding F<Configure> |
952 | variable, except C<PERL_CCFLAGS>, which gets appended. |
952 | variable, except C<PERL_CCFLAGS>, which gets appended. |
953 | |
953 | |
954 | You should have a look near the beginning of the F<staticperl> script - |
954 | The default for C<PERL_OPTIMIZE> is C<-Os> (assuming gcc), and for |
955 | staticperl tries to default C<PERL_OPTIMIZE> to some psace-saving options |
955 | C<PERL_LIBS> is C<-lm -lcrypt>, which should be good for most (but not |
956 | suitable for newer gcc versions. For other compilers or older versions you |
956 | all) systems. |
|
|
957 | |
|
|
958 | For other compilers or more customised optimisation settings, you need to |
957 | need to adjust these, for example, in your F<~/.staticperlrc>. |
959 | adjust these, e.g. in your F<~/.staticperlrc>. |
|
|
960 | |
|
|
961 | With gcc on x86 and amd64, you can get more space-savings by using: |
|
|
962 | |
|
|
963 | -Os -ffunction-sections -fdata-sections -finline-limit=8 -mpush-args |
|
|
964 | -mno-inline-stringops-dynamically -mno-align-stringops |
|
|
965 | |
|
|
966 | And on x86 and pentium3 and newer (basically everything you might ever |
|
|
967 | want to run on), adding these is even better for space-savings (use |
|
|
968 | -mtune=core2 or something newer for much faster code, too): |
|
|
969 | |
|
|
970 | -fomit-frame-pointer -march=pentium3 -mtune=i386 |
958 | |
971 | |
959 | =back |
972 | =back |
960 | |
973 | |
961 | =head4 Variables you probably I<do not want> to override |
974 | =head4 Variables you probably I<do not want> to override |
962 | |
975 | |