tce-load -i compiletc perl5 libpng-dev readline-dev popt-dev

http://deb.debian.org/debian/pool/main/p/pilot-link/pilot-link_0.12.5-dfsg.orig.tar.gz

cd pilot-link-0.12.5-dfsg

patch -Np1 -i ../0001-Don-t-use-PERL_POLLUTE-macros.patch
patch -Np1 -i ../10_clie_sj22.patc
patch -Np1 -i ../31_pilot-addresses.1
patch -Np1 -i ../32_typos
patch -Np1 -i ../33-new-png-lib
patch -Np1 -i ../34-pilot-link.pc
patch -Np1 -i ../colourcorrect

CC="gcc -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure -prefix=/usr/local --disable-static --localstatedir=/var --enable-threads --enable-libusb --with-libpng --enable-conduits

find . -name Makefile -type f -exec sed -i 's/-g2//g' {} \;

make [0m 14.98s]
sudo make install

  Options detected/selected
  -------------------------.
  pilot-link version...... : 0.12.5
  libpisock version....... : 9.0.2
  libpisync version....... : 1.0.3
  Build for host.......... : i686-pc-linux-gnu
  Extra Warnings.......... : no
  Direct USB support...... : yes, Linux
  BlueZ support........... : no
  Thread-safe libpisock... : yes
  ElectricFence checks.... : no
  CPPFLAGS................ : 
  CFLAGS.................. : -g2 -Wall

  Userland Tools
  -------------------------.
  Build userland tools.... : yes
  Support for popt........ : yes (system)
  Readline support........ : yes
  PNG support............. : yes

  Internal Language Support
  -------------------------.
  Iconv support........... : yes

  External Language Support
  -------------------------.
  TCL support............. : false      
  Java support............ : false      
  Python support.......... : false      
  Perl support............ : false      

