Installing mintbin-0.3

The 'mintbin' package contains some usefull tools to modify application stack size or program header flags. They are often needed by Makefiles in the Sparemint project.
This article explains how to make the mintbin package compile and install correctly in a Mac OS X cross-compiler environment.
The major problem in doing this is the fact that mintlib was created a long time before Mac OS X existed and therefore doesn't recognize it as a valid host system ("configure: error: can not guess host type; you must specify one").

  1. Download the file mintbin-0.3.tar.gz into a directory (for example 'work' in your home directory /Users/<username>/work).
  2. After downloading, start the application "Terminal" (from "Applications/Utilities" directory) and change to your download directory:
    cd ~/work
    
  3. Decompress the package:
    tar xvzf mintbin-0.3.tar.gz
    
  4. As said, mintbin-0.3 has been created before Mac OS X was so wide spread. This means its "configure" system doesn't know how to handle Mac OS X. So we have to give it a 'guess':
    cd mintbin-0.3
    cp /usr/share/automake-1.6/config.* .
    
  5. Configure the package: (if you've installed your cross-compiler into a different location, replace /usr/local/cross-tools by your installations prefix location)
    ./configure --prefix=/usr/local/cross-tools --target=m68k-atari-mint
    
  6. Finally to build and install the package
    make CFLAGS=-D_POSIX_SOURCE all install
    mv /usr/local/cross-tools/m68k-atari-mint/bin/m68k-atari-mint-* /usr/local/cross-tools/bin/
    
    The additionnal argument CFLAGS is necessary to avoid compiler errors and the mv instruction is necessary to correct the stupid behaviour of the Makefile which installs the m68k-atari-mint-* files into a wrong directory.

Well done! You should find now the files m68k-atari-mint-arconv, m68k-atari-mint-cnm, m68k-atari-mint-csize, m68k-atari-mint-cstrip, m68k-atari-mint-flags, m68k-atari-mint-mintbin, m68k-atari-mint-stack and m68k-atari-mint-symex in your cross-compiler directory.

Do you want to try them?
How about compiling some Sparemint projects?