if atstage cross; then musl_perl_cross_adjust() { sed -e '/^d_tm_tm_zone/d' \ -e '/^d_tm_tm_gmtoff/d' \ -e '/^d_libm_lib_version/d' \ -i config.sh echo "d_tm_tm_zone='undef'" >> config.sh echo "d_tm_tm_gmtoff='undef'" >> config.sh echo "d_libm_lib_version='undef'" >> config.sh } hook_add premake 2 'musl_perl_cross_adjust' fi