December 17, 2010

How to cross compile tinyproxy for mips

tinyproxy version: 1.8.2

1. Change the configure file to comment the section containing "Check for asciidoc" until all the way to "ac_config_files=" (not including). Also Remove the lines that test "HAVE_A2X_TRUE".

2. CC=/home/tzhang/filter/trunk/toolchain_bin/mips-openwrt-linux-gcc ./configure --host=mips-linux --enable-filter --disable-upstream --disable-reverse --enable-transparent --disable-regexcheck

3. modify config.h: search for "rpl_", and comment the two lines that contains rpl_malloc and rpl_remalloc. Use /* */ syntax to comment out.

4. vi src/Makefile, search for "LDFLAGS", and append " -s" to it (to strip the final binary)

5. Chanage Makefile to only build src. Find SUBDIRS , comment out all other directories other than "src".

6. Make. find the binary at src/tinyproxy.


  1. Hi may be you have the binary compiled?

  2. i have this:

    /usr/bin/ld: : No such file: No such file or directory
    collect2: ld devolvió el estado de salida 1
    make[2]: *** [tinyproxy] Error 1
    make[2]: se sale del directorio `/opt/bcm963xx/userapps/opensource/tinyproxy-1.8.3/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: se sale del directorio `/opt/bcm963xx/userapps/opensource/tinyproxy-1.8.3'
    make: *** [all] Error 2

    any idea?