Jelajahi Sumber

* fixed in case the fpc binary is not in the PATH

git-svn-id: trunk@8792 -
Jonas Maebe 18 tahun lalu
induk
melakukan
66520db151
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      compiler/utils/samplecfg

+ 2 - 1
compiler/utils/samplecfg

@@ -68,6 +68,7 @@ if [ $2 ]; then
 else
   sysdir=/etc
 fi
+FPCBIN=`dirname "$1"`/../../bin/fpc
 
 # Detect if we have write permission in root.
 if [ -w $sysdir ] ; then
@@ -125,7 +126,7 @@ esac
 CPUCROSSIFDEF1="#DEFINE NEEDCROSSBINUTILS"
 CPUCROSSIFDEF2=""
 
-case `fpc -PP` in
+case `$FPCBIN -PP` in
   i?86|x86_64|amd64)
     # Cross-binutils are not needed to compile for i386 on an x86_64 system
     CPUCROSSIFDEF1="