… | |
… | |
1167 | twice the address space needed for stacks). |
1167 | twice the address space needed for stacks). |
1168 | |
1168 | |
1169 | If you use C<linuxthreads.old>, then you should also be aware that |
1169 | If you use C<linuxthreads.old>, then you should also be aware that |
1170 | uClibc shares C<errno> between all threads when statically linking. See |
1170 | uClibc shares C<errno> between all threads when statically linking. See |
1171 | L<http://lists.uclibc.org/pipermail/uclibc/2010-June/044157.html> for a |
1171 | L<http://lists.uclibc.org/pipermail/uclibc/2010-June/044157.html> for a |
1172 | workaround (And L<https://bugs.uclibc.org/2089> for discussion). |
1172 | workaround (and L<https://bugs.uclibc.org/2089> for discussion). |
1173 | |
1173 | |
1174 | C<ccache> support is also recommended, especially if you want |
1174 | C<ccache> support is also recommended, especially if you want |
1175 | to play around with buildroot options. Enabling the C<miniperl> |
1175 | to play around with buildroot options. Enabling the C<miniperl> |
1176 | package will probably enable all options required for a successful |
1176 | package will probably enable all options required for a successful |
1177 | perl build. F<staticperl> itself additionally needs either C<wget> |
1177 | perl build. F<staticperl> itself additionally needs either C<wget> |
… | |
… | |
1185 | it from working properly in a chroot - either use dash (and link it to |
1185 | it from working properly in a chroot - either use dash (and link it to |
1186 | F</bin/sh> inside the chroot) or link busybox to F</bin/sh>, using it's |
1186 | F</bin/sh> inside the chroot) or link busybox to F</bin/sh>, using it's |
1187 | built-in ash shell. |
1187 | built-in ash shell. |
1188 | |
1188 | |
1189 | Finally, you need F</dev/null> inside the chroot for many scripts to work |
1189 | Finally, you need F</dev/null> inside the chroot for many scripts to work |
1190 | - F<cp /dev/null output/target/dev> or bind-mounting your F</dev> will |
1190 | - either F<cp /dev/null output/target/dev> or bind-mounting your F</dev> |
1191 | both provide this. |
1191 | will provide this. |
1192 | |
1192 | |
1193 | After you have compiled and set up your buildroot target, you can copy |
1193 | After you have compiled and set up your buildroot target, you can copy |
1194 | F<staticperl> from the C<App::Staticperl> distribution or from your |
1194 | F<staticperl> from the C<App::Staticperl> distribution or from your |
1195 | perl f<bin> directory (if you installed it) into the F<output/target> |
1195 | perl F<bin> directory (if you installed it) into the F<output/target> |
1196 | filesystem, chroot inside and run it. |
1196 | filesystem, chroot inside and run it. |
1197 | |
1197 | |
1198 | =head1 RECIPES / SPECIFIC MODULES |
1198 | =head1 RECIPES / SPECIFIC MODULES |
1199 | |
1199 | |
1200 | This section contains some common(?) recipes and information about |
1200 | This section contains some common(?) recipes and information about |