Forráskód Böngészése

Merged revisions 4115 via svnmerge from
svn+ssh://[email protected]/FPC/svn/fpc/trunk

........
r4115 | marco | 2006-07-06 22:33:54 +0200 (Thu, 06 Jul 2006) | 2 lines

* fix for freebsd and linux)

........

git-svn-id: branches/fixes_2_0@4116 -

marco 19 éve
szülő
commit
aaf86a456c
1 módosított fájl, 8 hozzáadás és 6 törlés
  1. 8 6
      compiler/utils/samplecfg

+ 8 - 6
compiler/utils/samplecfg

@@ -47,8 +47,7 @@ if [ -z "$GCCSPEC" ] ; then
   GCCSPEC=`gcc -print-libgcc-file-name`
 fi
 GCCDIR=`dirname $GCCSPEC`
-echo $GCCDIR
-if [ -f $GCCDIR ]; then
+
 # include ports tree dir for FreeBSDers.
 case $HOSTOS in
  freebsd)
@@ -60,11 +59,14 @@ case $HOSTOS in
  netbsd)
    GCCDIR=-Fl/usr/pkg/lib
      ;;
+ linux)
+   if [ -d $GCCDIR ]; then	
+      echo Found libgcc.a in $GCCDIR
+    GCCDIR=-Fl$GCCDIR
+   fi
+    ;;
+   
 esac
-else
-  echo Found libgcc.a in $GCCDIR
-  GCCDIR=-Fl$GCCDIR
-fi
 
 # set right path to FPC with $fpcversion
 FPCPATH=`dirname "$1"`/\$fpcversion