… | |
… | |
46 | |
46 | |
47 | # which extra modules you might want to install |
47 | # which extra modules you might want to install |
48 | EXTRA_MODULES="" |
48 | EXTRA_MODULES="" |
49 | |
49 | |
50 | # overridable functions |
50 | # overridable functions |
|
|
51 | preconfigure() { : ; } |
51 | postconfigure() { : ; } |
52 | postconfigure() { : ; } |
52 | postbuild() { : ; } |
53 | postbuild() { : ; } |
53 | postinstall() { : ; } |
54 | postinstall() { : ; } |
54 | |
55 | |
55 | # now source user config, if any |
56 | # now source user config, if any |
… | |
… | |
113 | |
114 | |
114 | ############################################################################# |
115 | ############################################################################# |
115 | # download/configure/compile/install perl |
116 | # download/configure/compile/install perl |
116 | |
117 | |
117 | clean() { |
118 | clean() { |
118 | cd "$STATICPERL/src/perl-$PERL_VERSION" 2>/dev/null || return |
119 | rm -rf "$STATICPERL/src/perl-$PERL_VERSION" |
119 | |
|
|
120 | rm -f staticstamp.configure |
|
|
121 | make distclean >/dev/null 2>&1 |
|
|
122 | } |
120 | } |
123 | |
121 | |
124 | fetch() { |
122 | fetch() { |
125 | rcd "$STATICPERL" |
123 | rcd "$STATICPERL" |
126 | |
124 | |
… | |
… | |
180 | rm -f "$PERL_PREFIX/staticstamp.install" |
178 | rm -f "$PERL_PREFIX/staticstamp.install" |
181 | |
179 | |
182 | # I hate them |
180 | # I hate them |
183 | grep -q -- -fstack-protector Configure && \ |
181 | grep -q -- -fstack-protector Configure && \ |
184 | sedreplace 's/-fstack-protector/-fno-stack-protector/g' Configure |
182 | sedreplace 's/-fstack-protector/-fno-stack-protector/g' Configure |
|
|
183 | |
|
|
184 | preconfigure |
185 | |
185 | |
186 | # trace configure \ |
186 | # trace configure \ |
187 | sh Configure -Duselargefiles \ |
187 | sh Configure -Duselargefiles \ |
188 | -Uuse64bitint \ |
188 | -Uuse64bitint \ |
189 | -Dusemymalloc=n \ |
189 | -Dusemymalloc=n \ |