fp-compiler.postinst 269 B

123456789101112131415
  1. #! /bin/sh
  2. FPCDIR=/usr/lib/fpc/0.99.12
  3. # create link
  4. ln -sf $FPCDIR/ppc386 /usr/bin/ppc386
  5. # create /etc/ppc386.cfg
  6. GCCSPEC=`(gcc -v 2>&1)| head -n 1| awk '{ print $4 } '`
  7. GCCDIR=`dirname $GCCSPEC`
  8. $FPCDIR/samplecfg $FPCDIR $GCCDIR
  9. # update ld.so cache
  10. # ldconfig