mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 16:39:16 +02:00
* fix for freebsd and linux)
git-svn-id: trunk@4115 -
This commit is contained in:
parent
b6192642c4
commit
47e32b23a3
@ -47,8 +47,7 @@ if [ -z "$GCCSPEC" ] ; then
|
|||||||
GCCSPEC=`gcc -print-libgcc-file-name`
|
GCCSPEC=`gcc -print-libgcc-file-name`
|
||||||
fi
|
fi
|
||||||
GCCDIR=`dirname $GCCSPEC`
|
GCCDIR=`dirname $GCCSPEC`
|
||||||
echo $GCCDIR
|
|
||||||
if [ -f $GCCDIR ]; then
|
|
||||||
# include ports tree dir for FreeBSDers.
|
# include ports tree dir for FreeBSDers.
|
||||||
case $HOSTOS in
|
case $HOSTOS in
|
||||||
freebsd)
|
freebsd)
|
||||||
@ -60,11 +59,14 @@ case $HOSTOS in
|
|||||||
netbsd)
|
netbsd)
|
||||||
GCCDIR=-Fl/usr/pkg/lib
|
GCCDIR=-Fl/usr/pkg/lib
|
||||||
;;
|
;;
|
||||||
|
linux)
|
||||||
|
if [ -d $GCCDIR ]; then
|
||||||
|
echo Found libgcc.a in $GCCDIR
|
||||||
|
GCCDIR=-Fl$GCCDIR
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
else
|
|
||||||
echo Found libgcc.a in $GCCDIR
|
|
||||||
GCCDIR=-Fl$GCCDIR
|
|
||||||
fi
|
|
||||||
|
|
||||||
# set right path to FPC with $fpcversion
|
# set right path to FPC with $fpcversion
|
||||||
FPCPATH=`dirname "$1"`/\$fpcversion
|
FPCPATH=`dirname "$1"`/\$fpcversion
|
||||||
|
Loading…
Reference in New Issue
Block a user