Cross compiling for PowerPC


  1. Download develop_x86_ppc.zip
  2. Unzip develop_x86_ppc.zip to /boot
  3. Create following symlinks
    ln -s /boot/develop_ppc/bin/mwccppc /boot/develop/tools/gnupro/bin/mwcc
    ln -s /boot/develop_ppc/bin/mwdisppc /boot/develop/tools/gnupro/bin/mwdisppc
    ln -s /boot/develop_ppc/bin/mwldppc /boot/develop/tools/gnupro/bin/mwldppc
    ln /boot/develop_ppc/lib/ppc /boot/develop/lib/ppc
  4. Modify /boot/develop/etc/makefile-engine line 256 "BUILD_LINE = ar -cru "$(TARGET)" $(OBJS)" like following
    	ifeq ($(CPU),ppc)
    		BUILD_LINE = mwldppc -dead on -xml -o "$(TARGET)" $(OBJS)
    	else
    		BUILD_LINE = ar -cru "$(TARGET)" $(OBJS)
    	endif
    	
  5. Make following script and save as "~/config/bin/makeppc"
    #!/bin/sh
    export BEINCLUDES=$(echo $BEINCLUDES | sed -e 's/develop/develop_ppc/g')
    export BELIBRARIES=/boot/develop/lib/ppc
    make MACHINE=ppc $1
  6. Make
    You only need to type makeppc in terminal.

Back to Top page