Makefile.SH: Updated the lib/buildcustomize.pl rule for cross-compilation builds
authorBrian Fraser <fraserbn@gmail.com>
Wed, 13 Nov 2013 05:48:59 +0000 (02:48 -0300)
committerBrian Fraser <fraserbn@gmail.com>
Wed, 22 Jan 2014 16:08:20 +0000 (13:08 -0300)
Makefile.SH

index 0cfb0a9..9228377 100755 (executable)
@@ -921,13 +921,14 @@ lib/buildcustomize.pl: $& $(mini_obj) write_buildcustomize.pl
                ;;
        *)
                if test "X$hostperl" != X; then
-                       $spitshell >>$Makefile <<'!NO!SUBS!'
-lib/buildcustomize.pl: $& $(mini_obj) write_buildcustomize.pl
+                       $spitshell >>$Makefile <<!GROK!THIS!
+lib/buildcustomize.pl: \$& \$(mini_obj) write_buildcustomize.pl
        -@rm -f miniperl.xok
-       -@rm $(MINIPERL_EXE)
-       ln -s $(HOST_PERL) $(MINIPERL_EXE)
-       $(LDLIBPTH) ./miniperl$(HOST_EXE_EXT) -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
-!NO!SUBS!
+       -@rm \$(MINIPERL_EXE)
+       \$(LNS) \$(HOST_PERL) \$(MINIPERL_EXE)
+       \$(LDLIBPTH) ./miniperl\$(HOST_EXE_EXT) -w -Ilib -Idist/Exporter/lib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl.  Please run make minitest; exit 1'
+       \$(MINIPERL) -f write_buildcustomize.pl 'osname' "$osname"
+!GROK!THIS!
                else
                        $spitshell >>$Makefile <<'!NO!SUBS!'
 lib/buildcustomize.pl: $& $(mini_obj) write_buildcustomize.pl